|Do you know where your variables are?|
Re: My first attempt to design a moduleby phaylon (Curate)
|on Oct 04, 2010 at 20:43 UTC||Need Help??|
You might want to take a peek at Moose as an OO framework. It already takes care of many things you'd otherwise might end up reinventing.
Other than that, I'd include the $! variable in your error messages for open and close, since that will contain the actual error message. You might also like autodie since it'll take care of this for you. It's in core since 5.10.1.
Ordinary morality is for ordinary people. -- Aleister Crowley