Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How can I tell if an object is based on a regex?

by blazar (Canon)
on May 31, 2007 at 22:34 UTC ( [id://618596]=note: print w/replies, xml ) Need Help??


in reply to How can I tell if an object is based on a regex?

In Object Oriented Perl, Chapter 5, TheDamian blesses a regular expression made with qr (see perlop).

Now, for those without the book, the question is why does he do that while we know that, as you correctly point out, the return value of qr is already a blessed reference into the Regexp package? Especially since the latter circumstance of its own makes for interesting tricks, as a recent poor attempt of mine shows...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://618596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found