in reply to Re^2: Can't use string ("0") as a HASH ref
in thread Can't use string ("0") as a HASH ref
Somewhere (and Perl says in line 109), your data structure is not what you think it is. Use Data::Dumper to get a view of your data structure:
use Data::Dumper; warn Dumper $result;
If the line numbers you posted still match up with the error messages you posted in your first post, then the error is in the following line:
$$myresult{$rkey} = $value;
So you best inspect all three values you have. Most likely, $myresult is 0 instead of whatever you expect:
warn "Parameters on subroutine entry:"; warn Dumper \@_; warn Dumper $myresult;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Can't use string ("0") as a HASH ref
by kp2a (Sexton) on Sep 28, 2008 at 22:47 UTC | |
by AnomalousMonk (Archbishop) on Sep 29, 2008 at 01:54 UTC |
In Section
Seekers of Perl Wisdom