Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Trouble finding modules from cron

by cbeckley (Curate)
on Apr 12, 2017 at 19:53 UTC ( #1187803=note: print w/replies, xml ) Need Help??


in reply to Re^3: Trouble finding modules from cron
in thread Trouble finding modules from cron

I would only add that if the scripts and the modules are going to maintain their relative positions in the file system before and after a move, then no change is required with

use lib "$FindBin::Bin/../path/to/modules";

However if there's a risk that the modules might move in relation to the scripts, then huck's solution is certainly more flexible.

Thanks,
cbeckley

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2020-06-07 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (42 votes). Check out past polls.

    Notices?