Would you have the constructor take a base class object and convert it to the derived?
I'd get the class of the provided object, then call its constructor directly.
Something like the following...
No. You're overcomplicating this and confusing yourself. Please post the existing code that constructs a new object so we can all see what you're doing.
In reply to Re^3: perl inheritance
by chromatic
in thread perl inheritance
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |