Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Check even numbers?

by cees (Curate)
on Aug 07, 2006 at 05:02 UTC ( [id://565891]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $str = 'ABABAABBA';
    $count = $str =~ tr/A//;  # $a = 5;
    
  2. or download this
    if ($count && !($count & 1)) {
      # Do something with this protein sequence
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-12-06 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (45 votes). Check out past polls.