Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: standard perl module and BEGIN block.

by ikegami (Patriarch)
on Aug 16, 2004 at 18:36 UTC ( [id://383403]=note: print w/replies, xml ) Need Help??


in reply to standard perl module and BEGIN block.

Re item 2: Check out the node inheritance problems for an example of where BEGIN { @ISA = ... } was useful.

Re item 3: BEGIN { use ... } is redundant.
use Module; is about equiv to BEGIN { require Module; Module->import(); }
use Module (); is about equiv to BEGIN { require Module; }
use Module qw(list); is about equiv to BEGIN { require Module; Module->import(qw(list)); }

Log In?
Username:
Password:

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

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

    No recent polls found