fetchrow_hashref returns one record, a reference to a hash. The keys to the hash are the database field names, which help in remembering what data is being referenced.


while(my $hashref = $handle->fetchrow_hashref){     print "Title: $hashref->{‘title’},          Author: $hashref->{‘author’},          Price: $hashref->{‘price’}\n"; }

Perl Database Programming
Perl Database Programming
ISBN: 0764549561
EAN: 2147483647
Year: 2001
Pages: 175

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net