in reply to Re:^2 $self->{foo} in sub new {}
in thread $self->{foo} in sub new {}
It is usually a good idea to use the $class = ref($class) || $class so a new object can be created from an existing object.No. Quite the opposite, according to those who have looked at it in depth. See "Why ref($proto) should be avoided" and "ref($proto) - just say no!".
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ^4 $self->{foo} in sub new {}
by flounder99 (Friar) on Dec 22, 2003 at 15:23 UTC | |
|
Re: •Re: Re:^2 $self->{foo} in sub new {}
by Taulmarill (Deacon) on Dec 22, 2003 at 15:46 UTC | |
by hardburn (Abbot) on Dec 22, 2003 at 18:00 UTC |