The current directory is, by default, the last item in the @INC array. The only difference that your use lib statement makes is to make it also the first item in @INC.
It's already been suggested to you that the current directory might not be the one that contains the running script. To add the script's directory to @INC you should look at the FindBin module.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Problem with use lib?
by davorg
in thread Problem with use lib?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |