440

Perl->HTML:Template

salutare tutror,vreau in perl sa folosesc HTML::Template,si nu prea inteleg initial teoria.Daca cineva dispune de ceva timp va rof sa ma ajutati sa inteleg asta prin un exemplu simplu:am un template: "templ1.tmpl"si codul in Perl:........................$query="SELECT COUNT(name) from Contact ";$sth=$dbh->prepare($query) ;$sth->execute();............................while (my @row = $sth->fetchrow_array){print"";print join("",@row),"\n";print"";print "";}..............................kum sa pun acest cod in templ1.tmpl?mercy anticipat
0