Permalink
Browse files

Clarify that unlike CGI.pm, this param method is not read/write.

There is a disclaimer at the top that most methods are read-only, but
it seems important to re-clarify here, as it affects the claim that
this method is CGI.pm compatible.
  • Loading branch information...
1 parent 9614843 commit 5d5fff3cc9bd3d1a302fdea9d27a40f159997bf2 @markstos markstos committed with miyagawa Dec 25, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Plack/Request.pm
View
@@ -542,7 +542,8 @@ Shortcut to $req->headers->user_agent.
Returns GET and POST parameters with a CGI.pm-compatible param
method. This is an alternative method for accessing parameters in
-$req->parameters.
+$req->parameters. Unlike CGI.pm, it does I<not> allow
+setting or modifying query parameters.
$value = $req->param( 'foo' );
@values = $req->param( 'foo' );

0 comments on commit 5d5fff3

Please sign in to comment.