![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Feature Idea: qr//e (updated)by haukex (Bishop) |
on Jan 19, 2017 at 12:00 UTC ( #1179909=note: print w/replies, xml ) | Need Help?? |
Hi vr,
Another excellent idea, thank you! I've updated my root node. it's eval'ed "before parsing a regex", while s///e is not about it at all Yes, you're right, it was misleading of me to write that qr//e would be "analogous to s///e", since in s///e it's the replacement part that gets evaled, not the regex. Update: Your solution has the interesting feature that the code gets reevaluated every time:
Thanks,
In Section
Seekers of Perl Wisdom
|
|