Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to know that a regexp matched, and get its capture groups?

by ikegami (Patriarch)
on Jan 10, 2023 at 13:56 UTC ( [id://11149487]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mv5.14 -e'if ( my @m = "b" =~ /(a)/ ) { say "@m"; }'
    
    ...
    
    $ perl -Mv5.14 -e'if ( my @m = "a" =~ /a/   ) { say "@m"; }'
    1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found