- or download this
while(my $row=$sth->fetchrow_hashref()){
push @domains, $row;
}
- or download this
print "$domains[0]->{subdomain}\n";
my $d;
foreach $d(@domains){
print "$d->{subdomain}\n";
}
- or download this
my $template=HTML::Template->new(filename=>'test.tmpl');
$template->param(DOMAINS => \@domains);
print $template->output();
- or download this
<TMPL_LOOP NAME=DOMAINS>
Subdomain: <TMPL_VAR NAME=SUBDOMAIN>
</TMPL_LOOP>