Browse files

Docs for placeholders.

  • Loading branch information...
rafl committed Mar 4, 2009
1 parent 5b52c24 commit 5fe7619fa1ddbfd48d55fcc7fa46e952622997d7
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/MooseX/Method/
@@ -233,6 +233,14 @@ The only currently supported trait is C<coerce>, which will attempt to coerce
the value provided if it doesn't satisfy the requirements of the type
+=head2 Placeholders
+ method foo ($bar, $, $baz)
+Sometimes you don't care about some params you're being called with. Just put
+the bare sigil instead of a full variable name into the signature to avoid an
+extra lexical variable to be created.
=head2 Complex Example
method foo ( SomeClass $thing where { $_->can('stuff') }:

0 comments on commit 5fe7619

Please sign in to comment.