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