I
ismael
Hi all
I have some problems to get the the permissions on windows with Perl code. I
use a simple code that run perfectly in UNIX but give me wrong information
on Windows. This is the code:
$file = "/home/ismael/pruebaperl/fichero.txt";
print "Starting to analize $file\n";
if (-e $file){
print "found\n";
}
else {
print "not found\n";
}
if (-x $file){
print "executable\n";
}
if (-r $file){
print "readable\n";
}
if (-w $file){
print "writable\n";
}
print "finished\n";
This code allways say that file is readable and writable except if is a read
only file.
is there a solution for this?, one library or code? Anything that i do
wrong?
Thanks everybody.
Best regards.
I have some problems to get the the permissions on windows with Perl code. I
use a simple code that run perfectly in UNIX but give me wrong information
on Windows. This is the code:
$file = "/home/ismael/pruebaperl/fichero.txt";
print "Starting to analize $file\n";
if (-e $file){
print "found\n";
}
else {
print "not found\n";
}
if (-x $file){
print "executable\n";
}
if (-r $file){
print "readable\n";
}
if (-w $file){
print "writable\n";
}
print "finished\n";
This code allways say that file is readable and writable except if is a read
only file.
is there a solution for this?, one library or code? Anything that i do
wrong?
Thanks everybody.
Best regards.