neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Into this:D. persimilis ggacaata D. grimshawi tcg----- D. simulans gg---agc D. willistoni aaataaat D. virilis tcg----- D. sechellia -------- D. mojavensis gca----- D. melanogaster gagggact D. erecta gagggacg D. yakuba aagggagg D. pseudoobscura ggacaata =====
The code I use to print the "untidy" version is this:D. persimilis ggacaata D. grimshawi tcg----- D. simulans gg---agc D. willistoni aaataaat D. virilis tcg----- D. sechellia -------- D. mojavensis gca----- D. melanogaster gagggact D. erecta gagggacg D. yakuba aagggagg D. pseudoobscura ggacaata =====
foreach my $winno ( 0 .. $highest ) { SP: foreach my $sp2 ( keys %enum_repo ) { my $lmer = $enum_repo{$sp2}[$winno]; if ( $enum_repo{$sp2}[$winno] ) { print "$sp2\t\t$lmer\n"; # PRINTING HERE } } print "=====\n\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tidying Up Tabbed Printing
by grep (Monsignor) on May 01, 2008 at 02:07 UTC | |
by andreas1234567 (Vicar) on May 01, 2008 at 14:25 UTC | |
Re: Tidying Up Tabbed Printing
by Fletch (Bishop) on May 01, 2008 at 02:39 UTC | |
Re: Tidying Up Tabbed Printing
by jethro (Monsignor) on May 01, 2008 at 02:19 UTC | |
Re: Tidying Up Tabbed Printing
by apl (Monsignor) on May 01, 2008 at 09:49 UTC | |
Re: Tidying Up Tabbed Printing
by moklevat (Priest) on May 01, 2008 at 13:21 UTC |