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


in reply to Conditional initialisation

This behaviour is somewhat of a bug, in that it's unexpected behaviour, but it's not going away anytime soon. It is caused by perl not clearing it's lexical pads on exit, for efficiency reasons. See. the classic Unusual Closure Behaviour for an exhausitive discussion on the subject.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Conditional initialisation
by Akhasha (Scribe) on May 20, 2004 at 02:54 UTC
    Many thanks, that node is precisely what I was after.