Can I set PERL5LIB in a seperate script and call that script in other scripts? How do I do it? And how would it affect the script in which it is used?
Thanks.
You'd do this via 'use lib' rather than manipulating the environment:
use lib '/home/perl5';
That could be in a separate file that you 'require' in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With