Take a peek at this for a list of file test operators.if (-s $file) { open(FILE, $file) || die "open: $file - $!\n"; # etc } else { warn "There are currently no links :(\n"; # or similar msg exit(); }
In reply to Re: How to goto new sub if file empty?
by vek
in thread How to goto new sub if file empty?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |