Perl's lack of 'in' keyword

Andy Armstrong andy at hexten.net
Wed Oct 8 15:01:52 BST 2008


On 8 Oct 2008, at 14:51, Nigel Rantor wrote:
> If anyone comes back and tell me that they think ~~ scans nicely in  
> english, is easier to type and provides a better, clearer  
> explanation of what it does in code than 'in' I will say no more on  
> the subject because we would just be dealing with a huge gulf in our  
> mental models of the world.


But ~~ isn't the same as in - it's a smart match not an inclusion test.

-- 
Andy Armstrong, Hexten





More information about the london.pm mailing list