in reply to Perl oddities
The fact that a comma after a map block is a syntax error:
$ perl -e 'map { $_ }, qw/foo bar/' syntax error at -e line 1, near "}," Execution of -e aborted due to compilation errors.
I'm fine with it not being required, but it shouldn't yell at you if you happen to include it.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl oddities
by TimToady (Parson) on Mar 01, 2005 at 20:29 UTC | |
Re^2: Perl oddities
by dragonchild (Archbishop) on Mar 01, 2005 at 14:36 UTC | |
by Joost (Canon) on Mar 01, 2005 at 14:42 UTC | |
by Anonymous Monk on Mar 01, 2005 at 16:16 UTC | |
by hardburn (Abbot) on Mar 01, 2005 at 16:18 UTC | |
by Anonymous Monk on Mar 01, 2005 at 16:49 UTC |