>I assume that Dermot was using the second version that doesn't need the braces and does need the comma.
I am often caught out between when to use the comma and not but it's "()" and comma or braces and no comma, I believe. Abigal: I wanted to avoid doing the foreach loop at the end. I hoped I could modify {position} in the transform. Still working with the examples I've been kindly show. Dermot. On 13 August 2014 10:59, Dave Cross <d...@dave.org.uk> wrote: > 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... > > >