Help for this page

Select Code to Download


  1. or download this
    sub test {
      if (wantarray){
    ...
        return ('A', 'List', 'of', 'Strings');
      }
    }
    
  2. or download this
    sub fetchall_arrayref {
        my $slice= shift || [];
    ...
        }
        return \@rows;
    }
    
  3. or download this
      $sth->fetchall_arrayref( [] ) # returns Array references
      $sth->fetchall_arrayref( {} ) # returns Hash  references