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;

CU
Robartes-