Help for this page

Select Code to Download


  1. or download this
    while (@data = $sth1->fetchrow_array()) {
        for (my $field = 0; $field <= $#data ; $field++) {
    ...
            eval('push @field'.$var_cnt.', $data['.$field.'];');
        }
    }
    
  2. or download this
    {
       no strict 'refs';
    ...
          }
       }
    }
    
  3. or download this
    my $pkg = \%::;
    $pkg = $pkg->{$_.'::'} foreach (split(/::/, __PACKAGE__));
    ...
          push(@{$pkg->{'field' . ($field+1)}}, $data[$field]);
       }
    }