http://qs321.pair.com?node_id=373402


in reply to Variable to point to library?

If I were you, I'd create an environment variable which holds the location of all my perl scripts (say WWW_PERLLIB). This does usually imply editing a file, at least under Linux (/home/username/.bash_profile). Then use Perl's mechanism to extract the environment variable's value ($ENV{$variable}) like this:
use lib $ENV{"WWW_PERLLIB"}; use Validate; ...