Guildencrantz has asked for the wisdom of the Perl Monks concerning the following question:
and it works just fine. I get the hashed value that I'm looking for. My question is: Can't this be done on a single line? Can't I dereference the fetchrow() return all at once? I've been playing with this for a while and can't seem to get it to work.my $rowhash = (fetchrow_hashref($dbh, $query))[0]; print $$rowhash{'Msg_type'}, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dereferencing array of hashrefs
by blokhead (Monsignor) on May 12, 2004 at 23:52 UTC | |
by ysth (Canon) on May 13, 2004 at 02:37 UTC | |
by Guildencrantz (Sexton) on May 13, 2004 at 02:13 UTC |