How to add library paths to perl

By Eric Downing. Filed in Perl, Programming, Scripting  |  
TOP del.icio.us digg

I need to write custom Perl libraries sometimes and an easy method to make sure that they are found on the path is to use the PERL5LIB environment variable.

So either set it in your current environment or in a shell you can just specify the contents before you run your script.

PERL5LIB=/PATH/WHERE/LIB/IS perl scripttorun.pl 

Tags: ,

Leave a Reply