Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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


Comment on Re: Variables in Regular Expressions?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-09-19 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls