in reply to hash with a hash
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...')
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash with a hash
by perlfan (Parson) on Jun 04, 2007 at 19:34 UTC |