http://www.perlmonks.org?node_id=1038202


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; }