Help for this page

Select Code to Download


  1. or download this
    my $ref = $dbh->selectall_arrayref(
        "SELECT field1, field2 FROM location
         WHERE restriction = 'RESTRICTION NAME'",
        { Slice => {} }
    );
    
  2. or download this
    for my $row_ref ( @{$ref} ) {
        # do something awesome with $row_ref->{field1} and $row_ref->{fiel
    +d2}.
    }