in reply to subroutine not working
But if you're just checking for any content, why not just use -s $filename??open (DATABASE, "$filename" || &ErrorMessage); # Did you mean this? You should also probably pass '$!' to # and include '$!' in ErrorMessage open (DATABASE, $filename) || &ErrorMessage;
|
|---|