more useful options | |
PerlMonks |
Re^6: FATAL ERROR: Can't use string ("HASH(0x875fffc)") as a HASH ref while "strict refs" in use atby Corion (Patriarch) |
on Jun 20, 2008 at 08:02 UTC ( [id://693082]=note: print w/replies, xml ) | Need Help?? |
Basically, you can't. The memory allocated to $hash is released as soon as ab returns because there is no reference to $hash anymore. If you need a reference to data, keep it as a reference. Don't convert it to a string.
In Section
Seekers of Perl Wisdom
|
|