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

Naveed Massjouni naveedm9 at gmail.com
Sun Jun 26 04:59:34 CEST 2011


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

sawyer: ^^^

-Naveed


>
> Cheers
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>


More information about the Dancer-users mailing list