|go ahead... be a heretic|
Inverting Template::Toolkitby talexb (Canon)
|on Jul 25, 2005 at 20:37 UTC||Need Help??|
talexb has asked for the wisdom of the Perl Monks concerning the following question:
I'm in a situation where I'd like to be able to use a Template::Toolkit file (the template, with variables where the data will go) and a populated file and go backwards to get a hash of variables that contain the corresponding values.
That is, if I have a template
and a config file
then eventually I'll have
Hmmm .. I do have conditionals in my file, so this may be a tough nut to crack .. let me tinker a bit. But if you have ideas, feel free!
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds