in reply to Text::Template problems continue

I see two big bugs.

Also, are you really trying to throw away the reverse_map lines? It isn't clear. You should handle this case like the comment, if you're expecting that data and don't want it. That will make the code more clear. Also, consider starting that regex with ^\s* to speed the program up.
--
Snazzy tagline here