Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
How to export hash referencesby Anonymous Monk |
on Feb 14, 2020 at 11:03 UTC ( [id://11112960]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to export a reference to a hash but can only access it with a fully-qualified name. What am I doing wrong? Thanks
perl -I. -MFoo=%env -le 'print scalar keys %env' 38 perl -I. -MFoo=$env -le 'print scalar keys %$env' 0 perl -I. -MFoo=$env -le 'print scalar keys %$Foo::env' 38
Back to
Seekers of Perl Wisdom
|
|