Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: qr// with /e?

by davido (Cardinal)
on Apr 24, 2004 at 23:47 UTC ( [id://347907]=note: print w/replies, xml ) Need Help??


in reply to Re: qr// with /e?
in thread qr// with /e?

"None of the other quotelike operators (q// et al) have suffixes so it doesn't seem regular..."

But qr// already does have other suffixes. See perlop under "Regex Quote Like Operators". qr// allows for qr//imosx. So the reason for not adding /e can't be because other quote-like operators don't have modifiers. The main reason is that it doesn't make sense since /e only causes an eval{} block to wrap around the right-hand portion of a s/// operator, and qr// doesn't construct that right-hand portion in the first place.

tie probably had it; don't call it /e. Call it /E or something else to avoid confusion with the longstanding function of the /e modifier.


Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://347907]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-26 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found