Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: returning variable from within regex

by pdotcdot (Acolyte)
on Aug 29, 2003 at 19:15 UTC ( [id://287801]=note: print w/replies, xml ) Need Help??


in reply to returning variable from within regex

Currently i am working through those perldoc pages, cheers for the pointer. i do not need the variable as a hash key, i apologize if my question seemed to suggest that, i am really looking for a pattern in $var1 in which on the last letter changes to any character, hence the a-z section of the regex. i presume i have to reference the whole section:
/($var2[a-z]{1})/
Do reference within the regex? i tried the $n..$1 approach an it just returned blank lines( the correct number of blank lines for the match though...) sorry for the confusion pdotcot

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-17 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found