if (/(\t*)#&#(\w+)/) { my $indent = length($1); apply_template($2, $indent); }