- or download this
sub cell {
# $tab is a number.
...
}
line($tab,qq(</t$type>));
}
- or download this
sub row {
# $tab is a number.
...
line($tab,q(</tr>));
}
- or download this
sub table {
# $tab is again a number.
...
line($tab,q(</table>));
}
- or download this
sub list {
# And again, $tab is a number.
...
line($tab + 1,qq(<li>$_</li>)) for @{$list};
line($tab,q(</ul>));
}
- or download this
sub col {
my ($tab,$opt) = @_;
...
my ($tab,$cols) = @_;
col($tab,$_) for @{$cols};
}
- or download this
sub sline {
my ($tab,$line) = @_;
...
sub line {
print sline(@_);
}
- or download this
package Base::HTML::Elements;
use strict;
...
}
1;