hi
cannot use Cwd correctly or rather perhaps getcwd().
please see example below
i could bypass this behaviour by overwriting the abs_path function but that is
really inconveient.
have others solved this behaviour. i noticed the FAQ that has a similar problem
(but in my case it the exe that does't work and the script that do work)
./allan
windows 2003
perl v5.8.8 built for MSWin32-x86-multi-thread
PAR vers 0.90
# perl.pl
use strict;
use Cwd qw (abs_path);
my $path = 'C:/test.txt';
if (-e $path) {
print "Exists\n";
}
if (-f $path) {
print "Filetype is file\n";
}
my $test = abs_path ($path);
print "$test\n";
# pp cmd:
pp test.pl -o test.exe
# output of perl test.pl
Exists
Filetype is file
C://test.txt
# output of text.exe
Exists
Filetype is file
Cannot chdir to C:\test.txt: No such file or directory at script/test.pl line 10