Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: How to store the data fetched from the database in perl

by frozenwithjoy (Priest)
on Jun 11, 2013 at 06:51 UTC ( #1038202=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to store the data fetched from the database in perl
in thread How to store the data fetched from the database in perl

I haven't used this module before, so am not totally familiar with this method, but does this work?

my %data; while ( my $result = $sth->fetchrow() ) { $data{$result} = 1; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-06-23 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?