You probably want
$tests{2} = \%blah2;
(i.e., you need to assign a hashref when you're in scalar context... Otherwise, you get the number of used/allocated buckets of the hash — which is why you see the error 'Can't use string ("2/8") as a HASH ref while "strict refs" in use...')
In reply to Re: hash with a hash
by almut
in thread hash with a hash
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |