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;
In reply to Re: subroutine not working
by runrig
in thread subroutine not working
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |