

No provision is made for generating HTTP or HTML on your behalf - you are expected to be conversant with how to put together any HTML or HTTP you need.ĬGI::PathInfo is compatible with ModPerl 1 in addition to normal CGI. The parameters decoding interface is somewhat compatible with the CGI.pm module. Rather than attempt to address every possible need of a CGI programmer, it provides the _minimum_ functions needed for CGI such as parameter decoding, URL encoding and decoding. and '$a_value' should contain the value 'b'. It is perfectly OK to use both the PATH_INFO and normal CGI parameters at the same time.Īt this point '$some' should contain the value 'thing', '$another' should contain the value 'something'. This is independant of the use of ordinary CGI parameters.

My $another = $path_info->param('another') Īt this point '$some' should contain the value 'thing' and '$another' should contain the value 'something'. CGI::PathInfo lets you treat that information as if it were ordinary CGI form data.

your webserver should place '/some-thing/another-thing/' into the PATH_INFO environment variable when your script is run. This lets you use 'extra' URL path information as CGI parameters.įor example, lets say you have a CGI script at URL If you were to call it as: Provides a micro-weight equivalent to the CPAN CGI.pm module that permits the use of the CGI environment variable 'PATH_INFO' as a functional equivalent to the GET method 'QUERY_STRING'. My ($form_field_value) = $path_info->param('some_field_name') DESCRIPTION CGI::PathInfo - A lightweight CGI processing package for using CGI PATH_INFO as if it was GET method form parameters SYNOPSIS use CGI::PathInfo
