Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(Ovid) Re: Letter frequencies

by Ovid (Cardinal)
on Nov 24, 2000 at 03:51 UTC ( [id://43179]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ($line = <>) {
        $symbol{ $_ }++ for ( split //, $line );
    }
    
  2. or download this
    while ($line = <>) {
        for ( split //, $line ) {
    ...
            $total++;
        }
    }
    
  3. or download this
    $total = eval (join '+', values %symbol); # :)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-24 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found