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

Re^2: What is the scope of BEGIN? Or... when does it "begin?"

by Mutant (Priest)
on May 06, 2005 at 08:38 UTC ( [id://454627]=note: print w/replies, xml ) Need Help??


in reply to Re: What is the scope of BEGIN? Or... when does it "begin?"
in thread What is the scope of BEGIN? Or... when does it "begin?"

See tlm's reply above. use is impicitly wrapped in a BEGIN. And since BEGIN's have no precedence over each other, your second example is effectively:
BEGIN { require mylib1; mylib1->import(); unshift (@INC,"\\mylib"); }
(I left out 'use strict' for simplicity's sake).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found