Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 the fire pops...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-02-28 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (399 votes). Check out past polls.