more useful options | |
PerlMonks |
Re: Merge hashrefs into oneby LanX (Saint) |
on Jul 14, 2020 at 16:19 UTC ( [id://11119308]=note: print w/replies, xml ) | Need Help?? |
var1-3 are array (AoH) references, hence scalar and not hashes. This my ($data) = {$var1, $var2, $var3}; to create a hash doesn't make any sense, the error is correct.
Try $a_new= [ @$var1, @$var2, @$var3 ]
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|