Perinci::Sub::GetArgs::WebForm - Get subroutine arguments (%args) from web form
This document describes version 0.02 of Perinci::Sub::GetArgs::WebForm (from Perl distribution Perinci-Sub-GetArgs-WebForm), released on 2015-09-04.
use Perinci::Sub::GetArgs::WebForm qw(get_args_from_webform); my %params = $query->params; # from CGI, or from Plack::Request my $args = get_args_from_webform(\%params);
This module provides get_args_from_webform(). This module is used by, among others, Borang.
Get subroutine arguments (%args) from web form.
Arguments ('*' denotes required arguments):
form* => hash
Either from Plack::Request's query_parameters() or CGI's Vars().
Plack::Request
query_parameters()
CGI
Vars()
meta => hash
Actually not required and not currently used.
meta_is_normalized => bool (default: 0)
Can be set to 1 if your metadata is normalized, to avoid duplicate effort.
Return value: (any)
Perinci
Please visit the project's homepage at https://metacpan.org/release/Perinci-Sub-GetArgs-WebForm.
Source repository is at https://github.com/perlancar/perl-Perinci-Sub-GetArgs-WebForm.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-GetArgs-WebForm
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perinci::Sub::GetArgs::WebForm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::Sub::GetArgs::WebForm
CPAN shell
perl -MCPAN -e shell install Perinci::Sub::GetArgs::WebForm
For more information on module installation, please visit the detailed CPAN module installation guide.