For more handy file-tests type perldoc perlfunc and search for "test". (For most people that means type "/test" and hit return.)if (-s $filename) { # The file is not empty }
In reply to Re: checking if file is empty or not
by tilly
in thread checking if file is empty or not
by damian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |