Schwartzian transform

Dave Cross dave at dave.org.uk
Wed Aug 13 10:59:48 BST 2014


Quoting Alex Balhatchet <kaoru at slackwise.net>:

> Hi Dermot,
>
> You have a few problems with your code:
>
> 1. First argument to map is a block

[ snip]

> 3. Some mis-placed commas

[ snip ]

Actually, map has two forms.

   map BLOCK LIST
   map EXPR, LIST

I assume that Dermot was using the second version that doesn't need  
the braces and does need the comma.

See http://perldoc.perl.org/functions/map.html

Cheers,

Dave...




More information about the london.pm mailing list