CGI-PathInfo
view release on metacpan or search on metacpan
lib/CGI/PathInfo.pod view on Meta::CPAN
If called in a scalar context when several values are present for
specified parameter, the *first* value will be returned.
Examples:
my (@form_fields) = $path_info->param;
my (@multi_pick_field) = $path_info->param('pick_field_name');
my ($form_field_value) = $path_info->param('some_field_name');
You can also use the param method to set param values to new values.
These values will be returned by this CGI::PathInfo object
as if they had been found in the originally processed PATH_INFO data. This
will not affect a seperately created instance of CGI::PathInfo.
Examples:
$path_info->param( 'name' => 'Joe Shmoe' );
$path_info->param({ 'name' => 'Joe Shmoe', 'birth_date' => '06/25/1966' });
$path_info->param({ 'pick_list' => ['01','05','07'] });
=back
=over 4
=item calling_parms_table;
Returns a formatted HTML table containing all the PATH_INFO parameters
for debugging purposes
Example:
print $path_info->calling_parms_table;
=back
=over 4
=item url_encode($string);
Returns a URL encoding of the input string.
Anything except 0-9a-zA-Z is escaped to %xx form.
The idea is to reserve all other characters for potential use
as parameter or key/value seperators.
Example:
my $url_encoded_string = $path_info->url_encode($string);
=back
=over 4
=item url_decode($string);
Returns URL *decoding* of input string (%xx substitutions
are decoded to their actual values).
Example:
my $url_decoded_string = $path_info->url_decode($string);
=back
=head1 BUGS
None known.
=head1 TODO
Extend build tests. Investigate ModPerl2 compatibility.
=head1 AUTHORS
Jerilyn Franz <cpan@jerilyn.info>
=head1 VERSION
1.06 - released 2020.09.27
=head1 COPYRIGHT
Copyright (c) Jerilyn Franz and FreeRun Technologies. All rights reserved.
=head1 LICENSE
MIT License
Copyright (c) 2020 Jerilyn Franz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=head1 DISCLAIMER
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE.
Use of this software in any way or in any form, source or binary,
is not allowed in any country which prohibits disclaimers of any
implied warranties of merchantability or fitness for a particular
purpose or any disclaimers of a similar nature.
IN NO EVENT SHALL I BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
( run in 0.679 second using v1.01-cache-2.11-cpan-9581c071862 )