Perl-Sensitive Sunglasses | |
PerlMonks |
Re^5: Why am I getting "premature end of script header"?by imp (Priest) |
on Nov 27, 2006 at 22:54 UTC ( [id://586353]=note: print w/replies, xml ) | Need Help?? |
BEGIN doesn't need to be at the beginning of the script, but it will make it easier for you to to follow the execution if it is.
If you want to keep a variable to track whether the module is loaded you should use our, as you should always use strict (and warnings).
In Section
Seekers of Perl Wisdom
|
|