File Checking
Existence:
if( -e $file) { print "File exists \n";}
else { print "File doesn't exist\n"; }
File exists with size 0(zero) : -z
File exists with size non-zero : -s
Readable/writable/Executable
File Readable : -rFile Writable : -w
File Executable : -x
Text/Binary
Text : -T
Binary : -B
No comments:
Post a Comment