Perl's lack of 'in' keyword

James Laver james.laver at gmail.com
Wed Oct 8 16:12:53 BST 2008


On 2008-10-08 15:55, "Philippe Bruhat (BooK)" <philippe.bruhat at free.fr>
wrote:
> 
> Note that the ~~ secret operator (the one that does "scalar" and works
> with Perls older than 5.10, not "smart-match") is called "inchworm".
> 
> Example usage:
> 
>     perl -le'print~~localtime'

Again the name relevance is a question of font.

I also seem to recall the 'inchworm on a stick', '~-'. I had to google to
find out what it does, but it seems to be a high precedence decrement[1]

Now at least we can identify the london.pm members who should spend less
time golfing...

Cheers,
--James

[1] http://www.mail-archive.com/fwp@perl.org/msg03450.html




More information about the london.pm mailing list