Help for this page

Select Code to Download


  1. or download this
      for ($i=0; $i<$qry->numrows; $i++) {
        @row = $qry->fetchrow or warn '...';
        print "\@row is assigned @row\n";
        $athlete[$i] = [ @row ];
      }
    
  2. or download this
      for my $i (0 .. $qry->numrows - 1) {
        @row = $qry->fetchrow() or warn '...';
        $athlete[$i] = [ @row ];
      }
    
  3. or download this
      for (1 .. $qry->numrows) {
        @row = $qry->fetchrow() or warn '...';
        push @$athlete, [ @row ];
      }