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,