in reply to "Globbing" over variable names in Perl?
perl -le '$a1 = 3; $a2 = 4; $c = 2; print join " | ",(keys %main:: ); +'
This works only for global variables, not the ones declared with 'my'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "Globbing" over variable names in Perl?
by pat_mc (Pilgrim) on Sep 29, 2010 at 17:28 UTC |