in reply to Creating A Custom Markup
Or you could run it all through W3C tidy at the end. :)if (/(\t*)#&#(\w+)/) { my $indent = length($1); apply_template($2, $indent); }
If you use File::Find (and you should), have a look at $File::Find::dir, or $File::Find::name. If you then use File::Spec (and you should), you can turn an absolute path into a relative path -- relative to the root directory under which you're recursing.
That all said, I definitely recommend picking up the Template Toolkit. You'll learn a lot rolling your own, but you'll probably paint yourself into a corner.
|
|---|