http://www.perlmonks.org?node_id=935509


in reply to Is this BEGIN construct supposed to work?

I don't see $hash{KEY} being retained except on the very first call to routine(). This is what I expected as the %hash gets (re)initialized when the containing scope is left.

- tye