Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: do $n exist in grep?

by Marshall (Canon)
on May 12, 2021 at 18:00 UTC ( #11132508=note: print w/replies, xml ) Need Help??


in reply to do $n exist in grep?

You wrote: Is $1 captured somewhere?

I hope that this blizzard of replies to your post makes it clear that the parens do capture $1!

Perl regex is super duper cool and there is a way to not capture A or B into $1. But I think that syntax is way past what you are asking for.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-07-29 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?