The $! literally tells you what the error is. I have no idea why you would want to throw that information away by not displaying it.
The "\n" in the output isn't necessary because die takes care of adding a newline automatically -- but I guess that's a matter of taste. Add one if you like. I never add newlines to die or warn statements.
In reply to Re^3: Handling multiple output files simultaneously using arrays of filehandles and filenames
by talexb
in thread Handling multiple output files simultaneously using arrays of filehandles and filenames
by Cosmic37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |