[Dancer-users] Where do I get POST form data in a post route?

Alberto Simoes ambs at perl-hackers.net
Sun Jun 26 14:33:56 CEST 2011


On 26/06/2011 03:59, Naveed Massjouni wrote:
> On Fri, Jun 24, 2011 at 9:25 AM, ambs<ambs+dancer at perl-hackers.net>  wrote:
>> On 24/06/2011 14:22, Leandro Hermida wrote:
>>>
>>> Hi again,
>>>
>>> Sorry another newbie question, in a post route where do I get the POST
>>> form data?  A la the CGI.pm $cgi->Vars hash
>>
>> $hash = params;
>>
>> or params->{variable}
>>
>> or even param("variable")
>
> Nice! I didn't know that you could do param 'foo'. This reminds me
> that some docs and presentations should be updated to use this cleaner
> way. Especially this great presentation:
>    http://perldancer.org/slides

Its hard to have up-to-date documentation on a moving target :)


More information about the Dancer-users mailing list