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?

I had this older script that was doing something similar, but with two values separated by tab:
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"; }

but I do not know how to adapt it.

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