This will check to see if $fileA refers to a directory and if $fileB refers to a file...my $fileA = "./something"; my $fileB = "./something/else.txt"; if(-d $fileA and -f $fileB) { ... }
In reply to Re: How to determine whether a dir entry is a directory?
by ozone
in thread How to determine whether a dir entry is a directory?
by Codmate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |