Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: mysterious regexp syntax

by grizzley (Chaplain)
on Feb 04, 2014 at 10:29 UTC ( [id://1073364]=note: print w/replies, xml ) Need Help??


in reply to Re: mysterious regexp syntax
in thread mysterious regexp syntax

Ahhhh... So possibility to omit 'm' remains in case of '?' delimiter. That is what I've been missing.
# perl -le '$_="abc"; print 1 if ?b?'
Thanks for clarification!

Replies are listed 'Best First'.
Re^3: mysterious regexp syntax
by Athanasius (Archbishop) on Feb 04, 2014 at 12:51 UTC

    But note the following, from perl5140delta:

    ?PATTERN? (without the initial m) has been deprecated and now produces a warning. This is to allow future use of ? in new operators. The match-once functionality is still available as m?PATTERN?.

    So with v5.14.4, I get:

    22:39 >perl -le "$_ = qq[abc]; print 1 if ?b?;" Use of ?PATTERN? without explicit operator is deprecated at -e line 1. 1 22:39 >

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-18 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found