Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: ASCII file

by chessgui (Scribe)
on Jan 26, 2012 at 18:54 UTC ( #950193=note: print w/ replies, xml ) Need Help??


in reply to ASCII file

open ASCII,'test.txt'; @chars=split //,join('',<ASCII>); %char_hash=(); foreach $c(@chars) { $char_hash{$c}++; } foreach $c(keys(%char_hash)) { print "$c occurs $char_hash{$c} times\n"; }


Comment on Re: ASCII file
Download Code
Replies are listed 'Best First'.
Re^2: ASCII file
by ww (Bishop) on Jan 26, 2012 at 19:35 UTC
    That's not "help" for rxd06040; that's "do it for" the OP.

    Please don't. You undermine the Monastery by doing, rather than teaching. See the replies,Re: ASCII file and Re: ASCII file from MidLifeXis and toolic that actually "help" without encouraging -- if not the OP, others, who think their "gimme's" constitute an acceptable question.

    So, you might ask, why didn't Anonymonk's offering draw this remark? Because that's a sufficiently unlikely way to code what OP's looking for to be satire ...or a honey-trap for those trying to have us do homework for them.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-28 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls