Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Is this BEGIN construct supposed to work?by JavaFan (Canon) |
on Nov 02, 2011 at 22:21 UTC ( [id://935510]=note: print w/replies, xml ) | Need Help?? |
What makes you think the BEGIN treats %hash as if it were a file-scoped global? Try moving the my %hash; *after* the begin block.
Note also that your claim the keys are retained doesn't seem to be true:
In Section
Seekers of Perl Wisdom
|
|