Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: use lib statement with path variable

by dave_the_m (Parson)
on Dec 04, 2013 at 21:22 UTC ( #1065657=note: print w/ replies, xml ) Need Help??


in reply to Re^3: use lib statement with path variable
in thread use lib statement with path variable

You should write: ...
The use statement needs to be outside the BEGIN block, e.g.
my $some_path; BEGIN { $some_path = "/my/path"; } use lib "$some_path/lib";

Dave.


Comment on Re^4: use lib statement with path variable
Download Code
Replies are listed 'Best First'.
Re^5: use lib statement with path variable
by Eily (Curate) on Dec 04, 2013 at 21:47 UTC

    Thanks, corrected :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-07-28 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls