in reply to Declaring a Variable [for BEGINNERS]
Most people would declare at least some of the varaibles closer to where they are used, saving initial declarations for things used widely throughout the routine.
Phil
In Section
Seekers of Perl Wisdom