Keep It Simple, Stupid | |
PerlMonks |
Re: DBI and fetchrow_hashrefby mephit (Scribe) |
on May 08, 2002 at 05:22 UTC ( [id://164914]=note: print w/replies, xml ) | Need Help?? |
fetchrow_hashref() returns just that: a reference to a hash. You're trying to access an actual hash. Instead, try
print $hashrow->{phone}, "\n"; The Data::Dumper module is useful in cases like this. You can print Dumper ($hashrow); to see the structure of the reference, and figure out how to get at the data. HTH
In Section
Seekers of Perl Wisdom
|
|