http://qs321.pair.com?node_id=1150125


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

Leetsauce,

You can test for file or directory by:

if ( -f $file ) { .... } ## $file is a file elsif ( -d $file ) { ... } ## also could use '_' for speed else { ,,, } ## Not what we're looking for
Also you may wish to look at 'glob' for getting information about directory contents ( files and/or directories ).

Good Luck...Ed

"Well done is better than well said." - Benjamin Franklin