2perl -le"print for keys %::" perl -le"print for keys %main::"
3$ perl -le"package stuff; $soy =1; $sauce =2; print for keys %stuff::" sauce soy
$ perl -MData::Dumper -le"package stuff; $soy =1; $sauce =2; print &: +:Dumper( \%stuff:: ) " $VAR1 = { 'sauce' => *stuff::sauce, 'soy' => *stuff::soy };
In reply to Re: "Globbing" over variable names in Perl?
by Anonymous Monk
in thread "Globbing" over variable names in Perl?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |