nop has asked for the wisdom of the Perl Monks concerning the following question:
Calling remap on derived class FOO would return a new Cube, not a new FOO. What's the right way to create a new whatever-it-is in remap?package Cube; sub remap { my ($self, blah blah) = @_; blah blah my $n = Cube->new(blah blah); blah blah return $n; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: derived class
by merlyn (Sage) on Oct 06, 2000 at 06:17 UTC |