Hi there, I want to check if a file is a plain file but not a symlink. It seems because -f returns true for a symlink that I have to do this:
my $fname = 'somefile';
if ( -f $fname and not -l $fname ) {
say "$fname is a plain file";
}
Is there a simpler way to do this?
--
Manfred
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
