Thank you so much for replying so fast and hitting all my pain points. This is exactly what I was looking for
$value = join ":", split " ", $value; # This is awesome $hash{$key} .= ", " if exists $hash{$key}; # I was thinking more i +n lines of a ternary op but this is short and concise too $hash{$key} .= $value; } print "$_ $hash{$_}\n" for sort keys %hash; # I definitely like this a +pproach
Thank you once again!
In reply to Re^2: Appending values to existing hash key
by jaypal
in thread Appending values to existing hash key
by jaypal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |