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
In reply to Re^2: Storing data into hashes
by rkrish
in thread Storing data into hashes
by rkrish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |