UPDATE: Changed "for" to "while" to accomodate multi-key hashref in $data2, per aartist (++).while(my($k,$v)=each %{$data2->[0]}){ $_->{$k} = $v for @$data1; }
"From there to here, from here to there, funny things are everywhere." -- Dr. Seuss
In reply to Re: Insert into element into arrays ref
by NetWallah
in thread Insert into element into arrays ref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |