CGI::PathParam - Add the feature of parsing path_info to CGI.


CGI-PathParam documentation  | view source Contained in the CGI-PathParam distribution.

Index


NAME

Top

CGI::PathParam - Add the feature of parsing path_info to CGI.

VERSION

Top

0.04

SYNOPSIS

Top

    use CGI;
    use CGI::PathParam;

    my $q = CGI->new;

    $q->path_param(qw(foo bar baz));    # same as $q->path_info('/foo/bar/baz')
    my @results = $q->path_param;       # @results is ( 'foo', 'bar', 'baz' ).

DESCRIPTION

Top

This module adds the feature of parsing PATH_INFO to CGI as a plugin.

SUBROUTINES/METHODS

Top

path_param(@)

If the arguments are specified, the values joined by / is set to path_info. Otherwise, it returns the list of path_info split.

DIAGNOSTICS

Top

Use of uninitialized value in join or string at ...

If you pass undef to path_param then you will see this message.

CONFIGURATION AND ENVIRONMENT

Top

DEPENDENCIES

Top

CGI

INCOMPATIBILITIES

Top

BUGS AND LIMITATIONS

Top

The path_param() does not provide a setter feature yet.

Please report any bugs or feature requests to bug-cgi-pathparam@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-PathParam. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc CGI::PathParam

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/CGI-PathParam

* CPAN Ratings

http://cpanratings.perl.org/d/CGI-PathParam

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-PathParam

* Search CPAN

http://search.cpan.org/dist/CGI-PathParam

AUTHOR

Top

Hironori Yoshida, <yoshida@cpan.org>

LICENSE AND COPYRIGHT

Top


CGI-PathParam documentation  | view source Contained in the CGI-PathParam distribution.