Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2016-05-30 01:41 GMT
Find Nodes?
    Voting Booth?