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

Re: Letter frequencies

by Dominus (Parson)
on Nov 24, 2000 at 04:00 UTC ( [id://43184]=note: print w/replies, xml ) Need Help??


in reply to Re: (Ovid) Re: Letter frequencies
in thread Letter frequencies

mdillon says:
> i would add a running total of all characters seen as well
While I agree with you that such a total would be useful, it's clearly much cheaper to compute it at the end:
for my $symbol (keys %symbol) { $total += $symbol{$symbol}; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found