I know that if i use: use lib "/path/to/dir" works. but when I try to use a variable it does not work. here is my code: @dirs = split /\// , $0; delete $dirs[-1]; my $runningDir = join "/",@dirs; $runningDir.="/"; use lib $runningDir;
what I am trying to do with this coded is add the running directory of the file to the @INC at runtime. i have tryied to add "./" but that does not work. My issue that lead to this is, if I am at /home/user in the terminal and I run: [EMAIL PROTECTED] /home/user $ perl /path/to/perl/file/notinhomedir/test.pl it will not find a pm file that is in the same directory as the test.pl if my terminal is in the same directory as the test file it works. so. if anyone has a solution to this problem, let me know. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/