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.
In reply to Re: Check for an empty file
by roboticus
in thread Check for an empty file
by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |