in reply to
How to goto new sub if file empty?
Another way of checking the emptiness of a file, without even opening it, is using the -z filetest operator:
stopit() if -z $file;
[download]
CU
Robartes-
Comment on
Re: How to goto new sub if file empty?
Download
Code
In Section
Seekers of Perl Wisdom