From: Karen Etheridge Date: Thu, 21 Feb 2013 20:55:05 +0000 (-0800) Subject: Revert "fix spelling in example" X-Git-Tag: v1.001000~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=80c5062071b369295c8a333c6dd44226b96e7424;p=gitmo%2FMoo.git Revert "fix spelling in example" It turns out that 'dagron' isn't a typo after all. Now I know! This reverts commit a0b12b0243e9916e97f9191e2a7ae51e413adf86. --- diff --git a/lib/Sub/Quote.pm b/lib/Sub/Quote.pm index 1d2f352..d067e2a 100644 --- a/lib/Sub/Quote.pm +++ b/lib/Sub/Quote.pm @@ -128,7 +128,7 @@ Sub::Quote - efficient generation of subroutines via string eval my $sound = 0; - quote_sub 'Silly::dragon', + quote_sub 'Silly::dagron', q{ print ++$sound % 2 ? 'burninate' : 'roar' }, { '$sound' => \$sound }; @@ -136,9 +136,9 @@ And elsewhere: Silly->kitty; # meow Silly->doggy; # woof - Silly->dragon; # burninate - Silly->dragon; # roar - Silly->dragon; # burninate + Silly->dagron; # burninate + Silly->dagron; # roar + Silly->dagron; # burninate =head1 DESCRIPTION @@ -157,7 +157,7 @@ C<$name> is the subroutine where the coderef will be installed. C<$code> is a string that will be turned into code. C<\%captures> is a hashref of variables that will be made available to the -code. See the L's C for an example using captures. +code. See the L's C for an example using captures. =head3 options