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

Re: What is wrong in this code???

by thundergnat (Deacon)
on Dec 07, 2012 at 21:45 UTC ( #1007829=note: print w/ replies, xml ) Need Help??


in reply to What is wrong in this code???

use strict; use warnings; my @gene; while (<>) { my $i = 0; for my $char ( split '', (split)[1] ) { $gene[$i++]{$char}++; } } my $i = 0; for my $pos (@gene){ print "\nPOS: ", $i++; for my $key ( sort keys %$pos){ print " | $key => ", $pos->{$key}; } };


Comment on Re: What is wrong in this code???
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2014-12-18 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (47 votes), past polls