Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: tr operator in eval -- updated

by haukex (Bishop)
on Sep 26, 2020 at 08:37 UTC ( #11122233=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $count = eval "tr/$oldlist/$newlist/";
    die if $@; # propagates exception from illegal eval contents
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2021-06-20 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (95 votes). Check out past polls.

    Notices?