Skip to content

Commit

Permalink
the multi-name form does not actually enforce scalar context
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 29, 2014
1 parent 7547c79 commit f3ba3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.22 2014-07-28
5.22 2014-07-29

5.21 2014-07-27
- Improved handling of Pod::Simple::XHTML 3.09 dependency.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -612,7 +612,7 @@ parameters, so you have to make sure it is not excessively large, there's a
# Better enforce scalar context
my $hash = {foo => scalar $c->param('foo')};
# The multi-name form can also be used to enforce scalar context
# The multi-name form can also be used to enforce a list with one element
my $hash = {foo => $c->param(['foo'])};
For more control you can also access request information directly.
Expand Down

0 comments on commit f3ba3e1

Please sign in to comment.