Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: returning variable from within regex

by roju (Friar)
on Aug 29, 2003 at 19:34 UTC ( #287810=note: print w/replies, xml ) Need Help??


in reply to returning variable from within regex

Can you maybe give an example of the data you're trying to match and the expected results? It's sounds like you want
elsif($var1=~ /[$var2]([a-z])/) { #stuff with $1 }

but it's hard to say.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2023-12-01 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?