Also, all of these $:: are brought into GLOBAL usage (which some programmers frown upon much like GOTO syntax is frowned upon.)
--As for the rest, it is mine.
They why aren't you just leaving off warnings and using varibles without declaring them first? It would be less typing, and get you the same thing in the end. (Or you could turn off the warnings just for that declaration, which is more typing for an infrequent variable but cleaner.)
The point of 'my' is to help the programmer manage scope issues, not to evade warnings. This is not to say all variables need to be 'my' scoped, but if they aren't it is probably best to just say why they aren't.
Daniel T. Staal
(Note: I like the How-Tos idea, just question the validity of this one in particular.)
--------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>