Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Use of Carp outside of package won't compile...

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.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://657698]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found