in reply to Check for an empty file
Jeri:
if ( -z '/home/vcg/Documents/Trial/temp' ) { print "File is empty!\n"; }
See perlfunc for the other -X file/dir checking functions.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
Update: Added link to perlfunc.
|
|---|