Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: ASCII file

by JavaFan (Canon)
on Jan 26, 2012 at 21:47 UTC ( #950223=note: print w/ replies, xml ) Need Help??


in reply to ASCII file

Untested:

use autodie; open my $fh "<", "ASCIIFILE"; my @c; while (<$fh>) {$c[ord]++ for split //} for ($_ = 0; $_ < @c; $_++) { printf "'%s' occurs %d times\n", chr, $c[$_] if $c[$_]; }


Comment on Re: ASCII file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-03-02 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (40 votes), past polls