The stupid question is the question not asked | |
PerlMonks |
Re: A question of style - declaring lexicalsby tilly (Archbishop) |
on Jun 04, 2004 at 23:33 UTC ( [id://361265]=note: print w/replies, xml ) | Need Help?? |
I strongly lean towards what you call style 2 for the reasons that I explain at RE (tilly) 3: redeclaring variables with 'my'. Incidentally you may wish to modify your code so that it runs. You declare a variable named $sessions which is initialized with a hash ref, and then you access the hash %sessions. Since you used strict.pm, it won't let you run that without fixing the bug.
In Section
Meditations
|
|