Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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"; }

Replies are listed 'Best First'.
Re^2: ASCII file
by ww (Archbishop) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-04-20 11:21 GMT
Find Nodes?
    Voting Booth?