Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to loop through Plack::Request body_parameters ?

by Anonymous Monk
on Feb 12, 2020 at 02:56 UTC ( #11112826=note: print w/replies, xml ) Need Help??


in reply to How to loop through Plack::Request body_parameters ?

Still learning how to do perl with plack.

Why? Plack::App::WrapCGI?

perldoc Hash::MultiValue

#!/usr/bin/perl -- use strict; use warnings; use Data::Dump qw/ dd /; use Hash::MultiValue; my $hash = Hash::MultiValue->from_mixed({ foo => [ 'a', 'b' ], bar => 'c', }); dd( $hash->as_hashref_mixed ); dd( $hash->as_hashref ); dd( %$hash ); __END__ { bar => "c", foo => ["a", "b"] } { bar => "c", foo => "b" } ("bar", "c", "foo", "b")

references quick reference

Modern Perl Ctrl+F "dereference" .. http://modernperlbooks.com/books/modern_perl_2016/03-perl-language.html#SGFzaFJlZmVyZW5jZXM

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2020-06-05 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (35 votes). Check out past polls.

    Notices?