my %hash; while (<DATA>) { chomp ( my ( $key, $val ) = split /,\s+/ ); push @{$hash{$key}}, $val; } print "$_ ", join( ", ", @{$hash{$_}} ), "\n" foreach sort keys %hash;
In reply to Re: rearranging text
by kesterkester
in thread rearranging text
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |