Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Use of Carp outside of package won't compile...

by Fletch (Bishop)
on Dec 18, 2007 at 17:09 UTC ( [id://657713]=note: print w/replies, xml ) Need Help??


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

Erm, no. qw() is just a special form of quoting (see perlop on "Quote-like Operators") and has nothing to do with the exporting of subs. The calling of the loaded module's import method by use is what's making things visible in the current package name space, and it would work just the same had he said use Carp 'croak' or use Carp q/croak/. It's just convention to use some variant of qw// because it allows you to easily specify a list of names to be imported with one set of delimiters.</pedant>

Update: Added link and remark on quote-like ops.

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://657713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-16 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found