And this works, but misses the point I guess:perl -e 'use constant foo => { a .. z }; print "$k : $v \n" while ($k +,$v) = each %{&foo};'
perl -e 'use constant foo => { a..z }; *foo_h=foo; print "$k : $v \n" +while ($k,$v) = each %foo_h;'
In reply to Re^2: Dereference a hash constant
by wrinkles
in thread Dereference a hash constant
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |