also, in the new method of SomeData, you have a little error.
if you do
sub new { bless \pop, shift }
it's like doing
sub new { bless \42, "MyNumber" }
and you can't bless a constant into an object.
so do my $arg = pop; bless \$arg, shift
In reply to Re: inheritance turns back and bites
by tinita
in thread inheritance turns back and bites
by dada
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |