Hi peeps,
I'm using this code;
$file = "true_existing_file";
if(-e $file) {
print "File exists\n";
} else {
print "No luck sucker\n";
}
the other way is;
open(F, $file) or die "Etc\n";
if(-e FILE) {
print "FILE exists\n";
} else {
print "No luck sucker\n";
}
Which ever way I try (Win NT) I always end up being the sucker despite providing a real and existing file name.
Any ideas?
cheers,
gready
I'm using this code;
$file = "true_existing_file";
if(-e $file) {
print "File exists\n";
} else {
print "No luck sucker\n";
}
the other way is;
open(F, $file) or die "Etc\n";
if(-e FILE) {
print "FILE exists\n";
} else {
print "No luck sucker\n";
}
Which ever way I try (Win NT) I always end up being the sucker despite providing a real and existing file name.
Any ideas?
cheers,
gready