ken2 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: abs_path problem
by ikegami (Patriarch) on Dec 19, 2006 at 21:21 UTC | |
|
Re: abs_path problem
by madbombX (Hermit) on Dec 19, 2006 at 21:00 UTC | |
|
Re: abs_path problem
by andyford (Curate) on Dec 19, 2006 at 21:16 UTC | |
by ikegami (Patriarch) on Dec 19, 2006 at 21:23 UTC |