Quoting Alex Balhatchet <ka...@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...


Reply via email to