I have a hunch that one of the hashes is being interpreted as a list and then a scalar. That would produce what you're seeing. E.G. try this:
print scalar(%hash = (name => "bob"));
You get the number 2 because there's only two items in the list form of the hash (name and "bob").
--Pileofrogs
In reply to Re^3: Can't use string ("2") as a HASH ref while "strict refs" in use
by pileofrogs
in thread Can't use string ("2") as a HASH ref while "strict refs" in use
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |