in reply to Re: How do I push new data into an existing hash?
in thread How do I push new data into an existing hash?
Try $hash{$key} .= $val; if $hash{$key} is a (string) scalar, or push @{$hash{$key}}, $val if $hash{$key} is an array reference. See perldoc perlref and perldoc perlreftut for more on how to play with references.
|
|---|