qr// returns a reference blessed into the "Regexp" package (so, no, the documentation for ref is not broken). This is unfortunate since, if you make an object based on a blessed qr// ref, then everthing continues to work but there is no good way to see that the ref is a compiled regex.
I recall demerphq looking at the proper way (in C / XS) to tell that a ref is the result of qr// for use by Data::Dump::Streamer so you can use the regex() function from that module.
- tye
In reply to Re: ref() and Regexp (blessed)
by tye
in thread ref() and Regexp
by tirwhan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |