in reply to Re: Dereference a hash constant
in thread Dereference a hash constant
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;'
|
|---|