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.
In reply to •Re: Re:^2 $self->{foo} in sub new {}
by merlyn
in thread $self->{foo} in sub new {}
by Taulmarill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |