#!/usr/bin/perl use strict; my %hash; while( <DATA> ) { next if ( /^>/ ); $hash{$1} .= $2 if ( /(\d\.\d+)\s+#\s+(.*)/ ); } foreach my $i (sort keys %hash) { print "$i # $hash{$i} \n"; }
In reply to Re: how to format print statements with data from array
by bichonfrise74
in thread how to format print statements with data from array
by Angharad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |