Skip to content
Browse files

`want` in Perl 5 is called `wantarray`, not `wantarry`.

  • Loading branch information...
1 parent c959ee8 commit 426f666de1cc059667022a0cf9376bea36cfa907 GlitchMr committed Sep 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 answers.md
View
2 answers.md
@@ -212,7 +212,7 @@ the exception with the `exception` method.
<span id="want" /><span id="wantarray" />
### Why is `wantarray` or `want` gone? Can I return different things in different contexts?
-Perl has the `wantarry` function that tells you whether it is called in
+Perl has the `wantarray` function that tells you whether it is called in
void, scalar or list context. Perl 6 has no equivalent construct,
because context does not flow inwards, i.e. a routine cannot know which
context it is called in.

0 comments on commit 426f666

Please sign in to comment.
Something went wrong with that request. Please try again.