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

Re: tr operator in eval

by pgmer6809 (Sexton)
on Sep 26, 2020 at 03:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122229]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found