[Dancer-users] Browser String not available when run with plackup
David Precious
davidp at preshweb.co.uk
Wed Jul 20 15:27:16 CEST 2011
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.
More information about the Dancer-users
mailing list