more useful options | |
PerlMonks |
Re: OUR declarationby sgifford (Prior) |
on Sep 23, 2006 at 17:10 UTC ( [id://574529]=note: print w/replies, xml ) | Need Help?? |
I usually use our in preference to use vars because it allows a declaration and assignment in one go:
For global variables, I usually use our in preference to my because it doesn't create closures within subs, which can cause problems under mod_perl.
In Section
Seekers of Perl Wisdom
|
|