in reply to Re^2: question regarding File::Copy, and hashes that contain file paths
in thread question regarding File::Copy, and hashes that contain file paths
You can test for file or directory by:
Also you may wish to look at 'glob' for getting information about directory contents ( files and/or directories ).if ( -f $file ) { .... } ## $file is a file elsif ( -d $file ) { ... } ## also could use '_' for speed else { ,,, } ## Not what we're looking for
Good Luck...Ed
"Well done is better than well said." - Benjamin Franklin
|
---|
In Section
Seekers of Perl Wisdom