in reply to overrides?

The override you exhibit is, judging by it's syntax, a convenience sub which takes a list of key-value pairs. Presumably it sets those properties in an inherited object.

Usually, function overriding occurs when a new version of a function is arranged to be found first by the compiler. Perl first looks for a sub in the current namespace, then starts scanning the @ISA list of namespaces, then main::. It uses the first it finds. In this case, it may be done instead by changing coderefs within the object itself.

It sounds like you'd do well to start documenting the system as you go. 'All' you need to do is insert pod as you identify things in source. Good luck!

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: overrides?
by Aristotle (Chancellor) on May 31, 2002 at 14:51 UTC

    I agree with Zaxo++ that it sounds like it's a convenience sub defined in one of your packages. I'd suggest you try to look it up, then look at what's inside to see how it works. My guess is that where you'll find it is the cornerstone of the system's design; in which case you're probably well off to spend some time reading there and as Zaxo said, to start documenting as you go.

    Incidentally, I have to say what you explain sounds like someone spent time to lay down a clean and concise design; kudos to whoever was your predecessor. I would advise you try to understand it all as much as possible and follow the spirit; lest maintenance work turns into a big ball of mud. Good luck :-)

    ____________
    Makeshifts last the longest.