in reply to ref() and Regexp
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ref() and Regexp (blessed)
by tirwhan (Abbot) on Jan 31, 2008 at 16:44 UTC | |
by tye (Sage) on Jan 31, 2008 at 16:59 UTC | |
by ysth (Canon) on Jan 31, 2008 at 18:20 UTC |