If you had not commented out your "or die "Could not open file: $!\n" code, then the reason why the file handle did not open would have been printed.
In reply to Re^3: Broken Function
by Anonymous Monk
in thread Broken Function
by carlriz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |