Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: require mystery

by Corion (Pope)
on Sep 07, 2007 at 06:17 UTC ( #637586=note: print w/replies, xml ) Need Help??


in reply to Re^4: require mystery
in thread require mystery

Perl allows barewords or strings (which are basically the same, except that a bareword comes without quotes, hence, "bare") as invocants:

File::Path->import(...)

is the same as:

"File::Path"->import(...)

and

my $pathtool = "File::Path"; $pathtool->import(...)

and all three translate to:

File::Path::import("File::Path",...);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2020-06-01 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (2 votes). Check out past polls.

    Notices?