Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Using variables with tr///

by frankus (Priest)
on Nov 14, 2001 at 21:24 UTC ( #125371=note: print w/replies, xml ) Need Help??


in reply to Re: Using variables with tr///
in thread Using variables with tr///

This also means by implication that $_ must be used:
eval("$c= $d =~ tr/$e/$f/")
Opens a whole bag of bunnies, I think you'll agree.
I've had to use:  eval "tr/$a/$b/" instead.

--

Brother Frankus.

¤

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2023-02-07 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (38 votes). Check out past polls.

    Notices?