saintmike has asked for the wisdom of the Perl Monks concerning the following question:
which throws a syntax error, up to perl 5.10. Does anyone know why the (admittedly superfluous) quotes throw perl off?my %hash = map { "$_" => 1 } qw(a b c);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Puzzling syntax error
by repellent (Priest) on Aug 15, 2008 at 18:31 UTC | |
|
Re: Puzzling syntax error
by dreadpiratepeter (Priest) on Aug 15, 2008 at 17:52 UTC | |
|
Re: Puzzling syntax error
by MidLifeXis (Monsignor) on Aug 15, 2008 at 17:40 UTC | |
by FunkyMonk (Bishop) on Aug 15, 2008 at 17:43 UTC |