I have a script that now uses abs_path. Skinnied down version of the code is:
use Cwd 'abs_path'; my $szAbs = (abs_path $0); print "Abs path is $szAbs\n";
This works great on my machine and provides just what I'd expect:
Abs path is C:/Program Files/xxxx/xxx.pl
My colleague gets the following error msg when executing the above:
Cannot chdir to C:\Program Files\xxxx\xxx.pl:No such file or directory at C:\Program Files\xxxx\xxx.pl line 2
This must be due to different versions of Perl? or Cwd? Or?? Help!
Thanks,
Ken
In reply to abs_path problem by ken2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |