Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by ikegami (Patriarch)
on Aug 24, 2020 at 06:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2025-11-08 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.