"be consistent" | |
PerlMonks |
Re: Access Request Object from RAWPERL block in Template Toolkit templateby WizardOfUz (Friar) |
on Dec 15, 2009 at 16:02 UTC ( [id://812903]=note: print w/replies, xml ) | Need Help?? |
TT templates with RAWPERL blocks are a maintenance nightmare. Simply copy all the request parameters you need to your %vars hash and pass that to TT. This also gives you the chance to gracefully handle any exceptions raised by $request->param(). Maybe your data inconsistency problems are a side effect of Apache2::Request's on-demand parsing strategy?
In Section
Seekers of Perl Wisdom
|
|