perl -le '$a1 = 3; $a2 = 4; $c = 2; print join " | ",(keys %main:: ); +'
This works only for global variables, not the ones declared with 'my'
In reply to Re: "Globbing" over variable names in Perl?
by jethro
in thread "Globbing" over variable names in Perl?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |