Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Use of fetchall_hashref

by runrig (Abbot)
on Sep 07, 2012 at 14:47 UTC ( #992325=note: print w/replies, xml ) Need Help??

in reply to Use of fetchall_hashref

Your $hash is a reference to a hash, not a hash. So you would need, e.g.:
print Dumper $hash->{E200}; # Or for a certain column print "$hash->{E200}{job}\n";

Replies are listed 'Best First'.
Re^2: Use of fetchall_hashref
by Anonymous Monk on Sep 10, 2012 at 04:16 UTC

    hi we tried this print Dumper $hash->{E200}; But it is returning something like $VAR1 = undef; please help me out :( tried this also print "$hash->{E200}{job}\n"; But it not printing any value .

      Then all I can say is look at the output of:
      print Dumper $hash;
      and see what the output is, see if 'E200' is in there, etc.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992325]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2018-05-24 18:17 GMT
Find Nodes?
    Voting Booth?