Syntactic Confectionery Delight | |
PerlMonks |
Re: Identifying if a variable is the product of a qr//by Juerd (Abbot) |
on Apr 25, 2002 at 10:46 UTC ( [id://161914]=note: print w/replies, xml ) | Need Help?? |
This is ugly, but it works. (For 99.9% of all cases - if you are able to predict a scalar reference's stringification, this will fail. :) This assumes that everything blessed into Regexp is a qr//, but if you don't trust that, just remove the "return 1" line.
In Section
Seekers of Perl Wisdom
|
|