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

Re^2: Instance of 'use lib' won't accept relative path

by ikegami (Pope)
on Aug 24, 2020 at 06:11 UTC ( #11121023=note: print w/replies, xml ) Need Help??


in reply to Re: Instance of 'use lib' won't accept relative path
in thread Instance of 'use lib' won't accept relative path

That won't work if you call the script via symlink. You need to use $RealBin.

use FindBin qw( $RealBin ); use lib "$RealBin/../lib";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2021-03-02 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (46 votes). Check out past polls.

    Notices?