in reply to Re: Storing data into hashes
in thread Storing data into hashes
Hi, I have tried this but unable to see any data stored in hash. The query is valid and it is fetching the data.I have verified it.
output is:sub loadSeqNbr { my %SeqRec; my $SeqRecord = $lda->prepare("select seq_nbr,data_record from usa +ge_inq" ); $SeqRecord->execute() while ( my $data = $SeqRecord->fetchrow_hashref()) { $SeqRec{$data->{seq_nbr}}=$data->{data_record}; } print ("content of hash is %SeqRec \n"); }
content of hash is %SeqRec
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Storing data into hashes
by Corion (Patriarch) on Dec 31, 2012 at 10:13 UTC | |
by rkrish (Acolyte) on Dec 31, 2012 at 10:20 UTC | |
by Corion (Patriarch) on Dec 31, 2012 at 10:35 UTC | |
|
Re^3: Storing data into hashes
by roboticus (Chancellor) on Dec 31, 2012 at 10:22 UTC | |
by rkrish (Acolyte) on Dec 31, 2012 at 10:33 UTC | |
by roboticus (Chancellor) on Dec 31, 2012 at 10:37 UTC | |
by cdarke (Prior) on Jan 02, 2013 at 06:23 UTC |