Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Why does /i not seem to work

by choroba (Cardinal)
on Nov 21, 2019 at 15:47 UTC ( [id://11108993]=note: print w/replies, xml ) Need Help??


in reply to Why does /i not seem to work

Try examining the $rx:
(?^:abc|xyz)

The sequence ?^ is described in perlre:

> Starting in Perl 5.14, a "^" (caret or circumflex accent) immediately after the "?" is a shorthand equivalent to "d-imnsx". Flags (except "d") may follow the caret to override it. But a minus sign is not legal with it.

-i means the qr() by default creates case sensitive regex objects.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

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

    No recent polls found