Without HTML::Template specifics, you can use the x operator to get repeated strings,
my $repeated = ' ' x $foo->{'depth'}; my $line = $repeated . $foo->{'name'} . "<br/>\n";
After Compline,
Zaxo
In reply to Re: can you repeat a character N times using HTML::Template?
by Zaxo
in thread can you repeat a character N times using HTML::Template?
by spditner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |