XP is just a number | |
PerlMonks |
URI Inheritenceby gdearing (Novice) |
on Nov 12, 2004 at 22:02 UTC ( [id://407543]=perlquestion: print w/replies, xml ) | Need Help?? |
gdearing has asked for the wisdom of the Perl Monks concerning the following question:
Hi.
I’m updating (and trying to clean) a legacy perl app that deals with document management. It seems that it has been repeatedly patched through the years, with various developers tacking on functionality. It’s now large, sprawling piece of code with lots of secondary programs tapping into its libraries. It uses URI::URL throughout. This would be fine, despite being deprecated, except that the system utilizes numerous secondary hashes to store “extra” information about the URI. A common example…
The rest of the code calls back into the creating object to “lookup” the extra URI information and the creating object isn’t even in scope in some areas. My original plan was to create a new class which inherited from the URI class via an @ISA relationship. This would let me bundle the extra data with the URI, while ensuring backward compatibility throughout the applications. As many of you probably already know, I ran into a few snags…here are the big ones:
Thanks in advance for any suggestions. If I can’t maintain the rvalue functionality, it’ll be a lot of work just to find all the programs with dependencies on these libraries, much less updating and testing them.
Back to
Seekers of Perl Wisdom
|
|