Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Optimizing a string processing sub

by dragonchild (Archbishop)
on Jan 08, 2003 at 19:49 UTC ( [id://225339]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub score
    {
    ...
    
        @{[$x =~ /[$y]/g]};
    }
    
  2. or download this
    sub score
    {
    ...
    
        $cnt1 < $cnt2 ? $cnt1 : $cnt2;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found