in reply to The decorator pattern

sub new { ... ... ref $type || $type; ... }
is an antipattern. Odd that you would use such when trying to show a pattern. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: The decorator pattern
by gargle (Chaplain) on Aug 20, 2005 at 18:21 UTC
    Damn, got me there ;) Good point actually...

    It's because of remarks like this that I always come back to Perl Monks. Thanks for the link!