Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Access Request Object from RAWPERL block in Template Toolkit template

by WizardOfUz (Friar)
on Dec 15, 2009 at 16:02 UTC ( [id://812903]=note: print w/replies, xml ) Need Help??


in reply to Access Request Object from RAWPERL block in Template Toolkit template

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://812903]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-23 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found