Hello folks,
Now I'm sure this has been asked but I've searched and can't find the answer....
I want to 'include' some modules in the current executing script directory.
I used to use "use lib qw ('absolute_path_to_cgi-bin')" but this becomes a pain in the butt, everytime the scripts are moved to a different server and the paths change.
is there a way of adding current directory to @INC, ive tried "use lib qw('./');" , dot , just slash, etc.. but I still get an error when trying to use the module saying it can't locate it.
I've tried googling and found
I guess my syntax is wrong or something, can someone help.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
Now I'm sure this has been asked but I've searched and can't find the answer....
I want to 'include' some modules in the current executing script directory.
I used to use "use lib qw ('absolute_path_to_cgi-bin')" but this becomes a pain in the butt, everytime the scripts are moved to a different server and the paths change.
is there a way of adding current directory to @INC, ive tried "use lib qw('./');" , dot , just slash, etc.. but I still get an error when trying to use the module saying it can't locate it.
I've tried googling and found
but that didn't work either.use lib glob('~/www/cgi-bin');
I guess my syntax is wrong or something, can someone help.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.