Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed param documentation

  • Loading branch information...
commit 37da98434cbf90b187ce766a70e9bd5f4396973a 1 parent eab78ff
@kraih authored
View
2  Makefile.PL
@@ -22,7 +22,7 @@ WriteMakefile(
repository => 'http://github.com/kraih/mojo',
bugtracker => 'http://github.com/kraih/mojo/issues'
},
- no_index => {directory => [qw/t/]}
+ no_index => {directory => ['t']}
},
EXE_FILES => ['script/hypnotoad', 'script/mojo', 'script/morbo'],
test => {TESTS => 't/*.t t/*/*.t'}
View
7 lib/Mojo/Message.pm
@@ -789,10 +789,11 @@ EXPERIMENTAL and might change without warning!
=head2 C<param>
- my $param = $message->param('foo');
- my @params = $message->param('foo');
+ my @names = $message->param;
+ my $foo = $message->param('foo');
+ my @foo = $message->param('foo');
-Access C<GET> and C<POST> parameters.
+Access C<POST> parameters.
=head2 C<parse>
View
4 lib/Mojo/Message/Request.pm
@@ -430,7 +430,9 @@ Check C<X-Requested-With> header for C<XMLHttpRequest> value.
=head2 C<param>
- my $param = $req->param('foo');
+ my @names = $req->param;
+ my $foo = $req->param('foo');
+ my @foo = $req->param('foo');
Access C<GET> and C<POST> parameters.
Please sign in to comment.
Something went wrong with that request. Please try again.