20 Jul
2011
20 Jul
'11
1:27 p.m.
On Wednesday 20 July 2011 14:06:12 Gurunandan Bhat wrote:
Thanks David. *request->user_agent* works in both cases (with Dancer's backend as well as with plackup).
Good stuff, glad to hear it :)
Would appreciate understanding why using %ENV for this is not a good idea.
Well, for one reason, it doesn't always work ;) Dancer gets the request via PSGI and makes stuff available to you through the DSL cleanly and safely; when you're poking around in %ENV directly, you're "going behind Dancer's back", so it can't help you there.