Skip to content

Commit

Permalink
Fixed wrong exp operator (Frank Wiegand, GH #17).
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Jun 30, 2010
1 parent 9233162 commit 43aad0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ E: scott@dearie.me.uk

N: Michael Hind
E: mike.hind@gmail.com

N: Frank Wiegand
E: fwie@cpan.org
10 changes: 5 additions & 5 deletions sections/anonymous_functions.pod
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ input with behavior:

my %dispatch =
(
plus => sub { $_[0] + $_[1] },
minus => sub { $_[0] - $_[1] },
times => sub { $_[0] * $_[1] },
goesinto => sub { $_[0] / $_[1] },
raisedto => sub { $_[0] ^ $_[1] },
plus => sub { $_[0] + $_[1] },
minus => sub { $_[0] - $_[1] },
times => sub { $_[0] * $_[1] },
goesinto => sub { $_[0] / $_[1] },
raisedto => sub { $_[0] ** $_[1] },
);

sub dispatch
Expand Down

0 comments on commit 43aad0a

Please sign in to comment.