We don't bite newbies here... much | |
PerlMonks |
Re: Use of Carp outside of package won't compile...by Fletch (Bishop) |
on Dec 18, 2007 at 16:23 UTC ( [id://657698]=note: print w/replies, xml ) | Need Help?? |
strict is lexically scoped (so it's affecting the rest of the compilation unit from that line to the end); the import from the use is to the specific package that's currently active. If the use is before the package then the import is making main::croak an alias; when you move it it's made as Test::croak.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|