The output is:#!/usr/bin/perl use strict; use Data::Dumper; my %hoh; my %hash = ( 'a' => 1, 'b' => 2 ); $hoh{'key'} = \%hash; print Dumper \%hoh;
$VAR1 = { 'key' => { 'a' => 1, 'b' => 2 } };
In reply to Re: Add hash to hash
by bichonfrise74
in thread Add hash to hash
by rethaew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |