Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Template::Plugin::Dumper didn't do what you need?
    • Template::Plugin::Dumper works great providing you know the name of the datastructure you want to dump - there's no way of dumping out the original datastructure you passed down in the process directive unless you do something like $template->process($tplfile, { mydata => $real_ds_ref });, sticking [% Dumper.dump(mydata) %] in your template, and updating all your other template variables accordingly.

      My colleague didn't want to have to do this (or force $real_ds_ref to contain a reference pointing ba

      • Whilst I remember, the answer to the question "why not just dump the stash?" goes something like, "you could do that, but you'll end up dumping out all the other stash stuff which you probably wouldn't want. A better solution would be to write a template plugin to essentially do that, but filter out the stash stuff TT2 adds".

        It was this point I thought, "blow that". ;-)