in reply to Re: Need help with perl syntax.
in thread Need help with perl syntax.
push @anon, do { $_ => 1 };
push works just fine with a list, you don't need a do {} block.
push @anon, $_, 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help with perl syntax.
by ikegami (Patriarch) on Mar 14, 2008 at 14:17 UTC | |
by jwkrahn (Abbot) on Mar 14, 2008 at 19:10 UTC | |
by ikegami (Patriarch) on Mar 14, 2008 at 21:18 UTC |