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

Re: Is it ok to require a module in a sub or method?

by merlyn (Sage)
on Sep 11, 2007 at 16:09 UTC ( [id://638344]=note: print w/replies, xml ) Need Help??


in reply to Is it ok to require a module in a sub or method?

The require checks %INC, and if it's already there, is a no-op. So feel free... it's just a hash lookup on every time but the first.
  • Comment on Re: Is it ok to require a module in a sub or method?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found