Help for this page

Select Code to Download


  1. or download this
    my $sql = "select * from location";
    my $sth = $dbh->prepare( $sql );
    ...
      print "\n";
    }
    $dbh->disconnect();
    
  2. or download this
    #!/usr/bin/env perl
    use strict; 
    ...
    dd @$data[1]; # Second row from the database as hashref
    dd $data->[0]{field1}; #field1 from first row