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

Re: tr operator in eval

by pgmer6809 (Acolyte)
on Sep 26, 2020 at 03:54 UTC ( #11122229=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        
        # this next two step works..... 
        $xtr = "$bad =~ tr/$card//;" ;
        $kards = eval "$xtr;";
            print "xtr kards = $kards from eval cmd : $xtr\n";
        #output: xtr kards = 5 from eval cmd : AKQJT98765432KKKK =~ tr/K//
    +;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-06-20 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (94 votes). Check out past polls.

    Notices?