Help for this page

Select Code to Download


  1. or download this
    # assumption: @words == @numbers
    use Data::Dumper;
    ...
       } 
    } 0..$#words;
    print Dumper \@loop_data;
    
  2. or download this
    sub db2tmpl {
        my ($sth,@bind) = @_;
    ...
        }
        return \@loh;
    }
    
  3. or download this
    my $sth = $dbh->prepare('select * from student');
    my $students = db2tmpl($sth);