Howdy group,
This seems like it should be simple, but I'm a bit stumped on the best way to do this:
I want to add a hash to a hash, With arrays you could: push @arr2, @arr2;
but what is the best way to do that with a hash?
perl -MData::Dumper -mstrict -we 'my %q=(1=>2,3=>4);my %w=(5=>6,7=>8);print Dumper \%q;'
So how can I add %w to %q in that example?
IE so it outputs:
$VAR1 = { '1' => 2, '7' => 8, '5' => 6, '3' => 4 };
TIA
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>