Help for this page

Select Code to Download


  1. or download this
    my @row;
      while (@row = $sth1->fetchrow_array)
        {
          print "@row \n";
        }
    
  2. or download this
    my @resultarray;
    
  3. or download this
    push @resultarray,\@row;
    
  4. or download this
    return @resultarray;  # returns list when called in list context
    return \@resultarray; # returns reference
    return wantarray ? @resultarray : \@resultarray; # adapt to calling co
    +ntext