Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Variables in Regular Expressions?

by KM (Priest)
on Apr 25, 2001 at 23:39 UTC ( #75584=note: print w/replies, xml ) Need Help??


in reply to Variables in Regular Expressions?

Why are you using tr at all? This is likely best done with s///

$c =~ s!$a!$b!;

Cheers,
KM

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75584]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-09-21 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (252 votes). Check out past polls.

    Notices?