is an antipattern. Odd that you would use such when trying to show a pattern. {grin}sub new { ... ... ref $type || $type; ... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: The decorator pattern
by merlyn
in thread The decorator pattern
by gargle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |