T
Troll
Hi,
Would something like:
if (-r $name) {
: # do nothing
} else {
print "File is not readable...\n";
}
be enough to test if a file is readable by all users?
I'm a little unsure which bit does the -r relate to.
What about if I wanted to test whether the file is readable by the owner's
group but not everyone else?
Cheers
Would something like:
if (-r $name) {
: # do nothing
} else {
print "File is not readable...\n";
}
be enough to test if a file is readable by all users?
I'm a little unsure which bit does the -r relate to.
What about if I wanted to test whether the file is readable by the owner's
group but not everyone else?
Cheers