I want to have a subroutine that I can call from anywhere in my script that I will use to handle errors and then exit. The problem is....at any one point, I might have a variety of filehandles open for log files, config files, whatever.
Rather than specifying to close them all by name in the sub, is there a way to close them all generically, or is it even necessary?
Any knowledge shared is surely appreciated!
In reply to filehandle cleanup by dbaad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |