![]() |
|
more useful options | |
PerlMonks |
Re^3: FATAL ERROR: Can't use string ("HASH(0x875fffc)") as a HASH ref while "strict refs" in use atby sgifford (Prior) |
on Jun 17, 2008 at 15:19 UTC ( #692538=note: print w/replies, xml ) | Need Help?? |
I've never used Tie::File::AsHash, but it appears to treat a file as a hash of arrays. You are trying to store a hash reference in it, and it's converting that to a string, HASH(0x875fffc). You would need to either convert it into an array before storing it, then convert back to a hash before using it; or else serialize it, perhaps using Storable.
In Section
Seekers of Perl Wisdom
|
|