in reply to A question of style - declaring lexicals

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.

  • Comment on Re: A question of style - declaring lexicals