in reply to How to morph a plain module to OO
My first suggestion is not to do this. If you have a working module and it is already heavily used, just write a new module for the OO stuff and have it use the old module under the covers. It is far too easy to break the original code in subtle ways.
As an illustration, you already broke the functionality of your original module because your new isFile() doesn't take a verbose argument when it isn't used as a method.
-sauoq "My two cents aren't worth a dime.";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to morph a plain module to OO
by adrianh (Chancellor) on Sep 07, 2002 at 21:37 UTC |
In Section
Seekers of Perl Wisdom