Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: using "require" problem

by Anonymous Monk
on Sep 26, 2017 at 13:07 UTC ( #1200110=note: print w/replies, xml ) Need Help??


in reply to using "require" problem

UNIVERSAL::require is very good go-juice ... makes many annoyances go away.

Replies are listed 'Best First'.
Re^2: using "require" problem
by haukex (Abbot) on Sep 26, 2017 at 13:24 UTC
    UNIVERSAL::require

    As I already said here: That module has a huge caveat and I wouldn't recommend it. It adds two methods to the UNIVERSAL class, the base class for all Perl classes. This means that loading this module can affect every single class and object in the program.

    I'm also not sure how it applies to the OP's question, I see nothing in its documentation regarding @INC, instead it "works exactly like Perl's require".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1200110]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-12-11 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (310 votes). Check out past polls.

    Notices?