Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It says:my %opt; my @vals = qw(title artist album); my @opts = map { "$_=s" => \$opt{$_} } @vals;
It can be very easy reproduced:Not enough arguments for map at test.pl line 3, near "} @vals" syntax error at test.pl line 3, near "} @vals" Execution of test.pl aborted due to compilation errors.
Any thought on this issue is appreciated. Thank you very much.Not enough arguments for map at test.pl line 1, near "} qw(1 2 3)" syntax error at test.pl line 1, near "} qw(1 2 3)" Execution of test.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: map syntax error -- weird
by LanX (Saint) on Mar 22, 2013 at 10:28 UTC | |
by McA (Priest) on Mar 22, 2013 at 10:32 UTC | |
by LanX (Saint) on Mar 22, 2013 at 10:39 UTC | |
|
Re: map syntax error -- weird
by BrowserUk (Patriarch) on Mar 22, 2013 at 10:32 UTC | |
by hdb (Monsignor) on Mar 22, 2013 at 10:38 UTC | |
by LanX (Saint) on Mar 22, 2013 at 10:54 UTC | |
by BrowserUk (Patriarch) on Mar 22, 2013 at 10:54 UTC | |
by tobyink (Canon) on Mar 22, 2013 at 22:38 UTC | |
by ikegami (Patriarch) on Mar 24, 2013 at 07:08 UTC |