in reply to Re^2: Can't use string ("2") as a HASH ref while "strict refs" in use
in thread Can't use string ("2") as a HASH ref while "strict refs" in use
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |