Help for this page
open( my $fh, $infile ) or die "Cannot open '$infile' for reading: $!\ +n"; my %data; ... print $fh join( ',', $k, @{$data{$k}} ), $/; } close( $fh );