![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^2: use vars vs our vs $main:: for $VERSIONby bv (Friar) |
on Sep 26, 2009 at 13:41 UTC ( #797686=note: print w/replies, xml ) | Need Help?? |
Since the script is standalone (not a module), the $main::VERSION one isn't completely wrong, but I do understand that our is better, since it does the right thing if I am in package main or any other package. Thanks!
In Section
Seekers of Perl Wisdom
|
|