in reply to A question of style - declaring lexicals

you can see at first glance which variables are meant to be used within the scope you've just entered

Why do you need that information? If that variable isn't going to be used for another two screen lengths worth of code, it seems like a silly peice of information to know. It may even be a hindrence, because it adds noise at the beginning of the sub.

Lexicals should be declared within the most narrow scope possible. That's why we have them in the first place.

----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

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