in reply to Re: qr// with /e?
in thread qr// with /e?
My main objection to the two-line method is that it leaves the first value in scope for no good reason. This is exactly why I used the do BLOCK construct in my "workaround", so that the temporary value is never seen outside the assignment.
And qr// is a bit of an odd duck, anyway; it isn't doing actual matching. In a sense, it is replacing a string with a regex. So I don't find /e all that unnatural.
But one of the reasons I asked here was to get others' opinion on the matter. Thanks for the feedback, and I'm curious what others will have to say about it. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: qr// with /e?
by fizbin (Chaplain) on Apr 24, 2004 at 01:00 UTC | |
by tkil (Monk) on Apr 24, 2004 at 05:30 UTC | |
by hv (Prior) on Apr 24, 2004 at 09:32 UTC | |
by tkil (Monk) on Apr 26, 2004 at 04:40 UTC | |
by hv (Prior) on Apr 26, 2004 at 09:14 UTC |