in reply to Re: Variable declarationin thread Variable declaration
A classic on the topic is Tutorials: Getting Deeper Into Perl: Coping with Scoping