Help for this page

Select Code to Download


  1. or download this
    sub first_row {
        my ($dbh, $query, @args) = @_
    ...
    my ($success, $first_result) = first_row($dbh, "SELECT ... ");
    # and if you don't want to actually check success
    my $second_result = first_row(...);