|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^4: I don't understand UNIVERSAL::DOES()by demerphq (Chancellor) |
| on Mar 10, 2007 at 10:45 UTC ( [id://604123]=note: print w/replies, xml ) | Need Help?? |
|
Wouldn't it be better if the role names matched the ref? I.e. CODE,ARRAY,HASH,REGEX ? No. For reasons i explained in my reply to chromatic. And 'REGEX' isnt a type. You will never see it returned from ref() or reftype(). Also, your code doesnt solve the "can i deref this item in a particular way" problem, nor the "does this reference contain regexp magic" problem. As for code, yeah, once i get it done ill post it. Currently its a work in progress.
--- $world=~s/war/peace/g
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||