Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Appending rather than prepending in "use lib"

by sundialsvc4 (Abbot)
on Nov 02, 2010 at 00:24 UTC ( [id://868904]=note: print w/replies, xml ) Need Help??


in reply to Appending rather than prepending in "use lib"

As perldoc explicitly states, @INC is “just an ordinary array.”   The one and only thing “special” about it is... how Perl uses it.

Having said that...   things like use lib are (quite sensibly...) designed to conveniently deal with “the rule, rather than the exception,” and... TMTOWTDI!

If you want to add a value to the end of @INC ... “hey, this is Perl!   Just Do It.™”

Features like use lib are (sensibly...) designed in the spirit of DWIM™.   If your stated purpose is merely “to use a library,” then you (of course...) shouldn’t be obliged to think of that “in terms of @INC” ... unless you want to.   (And yet, if you want to, you should be free to.)

  • Comment on Re: Appending rather than prepending in "use lib"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-18 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found