in reply to concatenating elements of an array in twos
my %r; for(@unpairedSidBinder){ my($sid,$foo)=split(/\|/); push(@{$r{$sid}//=[]},$foo); } print(map("$_|".join(' ',@{$r{$_}})."\n",keys(%r)));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: concatenating elements of an array in twos
by Sandy_Bio_Perl (Beadle) on Aug 16, 2016 at 23:39 UTC | |
|
Re^2: concatenating elements of an array in twos
by Sandy_Bio_Perl (Beadle) on Aug 16, 2016 at 23:26 UTC |