Help for this page

Select Code to Download


  1. or download this
    while (my $rec = $sth->fetchrow_hashref()) {
        print $rec->{xy}, $rec->{xz}, $rec->{yz};
    }
    
  2. or download this
    while (my $row = $sth->fetchrow_hashref()) {
        print map( { "$_ => $row->{$_}\t"} @{$sth->{NAME}}),  "\n";
    ...
        }
        print "\n";
    }
    
  3. or download this
    while (my $row = $sth->fetchrow_arrayref()) { # arrayref, not hash
        my $index = 0;
    ...
        }
        print "\n";
    }
    
  4. or download this
    my $aref = $sth->fetchall_arrayref({});