Any particular reason you disallow both "Processor" and "Processor\n" as package names? I'd have been inclined to use an nice simple string compare instead of a regexp:
... if $class eq 'Processor';
For more generality, I'd take advantage of the builtin symbol to make the same check work everywhere:
... if $class eq __PACKAGE__;
(And, for the record, I have no problem with ref($this) || $this.)
Hugo
In reply to Re: Abstract Packages
by hv
in thread Abstract Packages
by Velaki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |