Perl: the Markov chain saw | |
PerlMonks |
Re: Abstract Packagesby hv (Prior) |
on Aug 04, 2004 at 14:19 UTC ( [id://380004]=note: print w/replies, xml ) | Need Help?? |
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:
For more generality, I'd take advantage of the builtin symbol to make the same check work everywhere:
(And, for the record, I have no problem with ref($this) || $this.) Hugo
In Section
Cool Uses for Perl
|
|