in reply to Re^2: How do I use the map command for this?
in thread How do I use the map command for this?
use strict; use warnings; my %res; while (<>) { chomp; my ( $name, $rest ) = split /\t/; push @{ $res{$name} }, $rest; } for ( sort keys %res ) { print "$_:", join( ",", @{ $res{$_} } ); print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I use the map command for this?
by LanX (Saint) on Jun 19, 2022 at 14:21 UTC |