Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 examining the Monastery: (11)
As of 2015-08-03 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (28 votes), past polls