One minor nit pick:
You don't test for success when you open MPCFG, and you open it without closing it. You could run out of open file handles
Filehandles are global (another good reason for preferring IO::File as you suggest) so if open is called with a FILEHANDLE argument that refers to an already open file, the FILEHANDLE is closed first. The original script might not be good style, but it doesn't leak filehandles.
In reply to Re: Re: First Unix Admin Script - Request for Constructive Critisism
by grantm
in thread First Unix Admin Script - Request for Constructive Critisism
by D.Millin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |