in reply to Re^2: given-when last time through loop?
in thread given-when last time through loop?
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index d5fc4a7..4e1bc0a 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -679,7 +679,7 @@ string occurs in an array: } print "\@array contains $count copies of 'foo'\n"; -On exit from the C<when> block, there is an implicit C<next>. +At the end of all C<when> blocks, there is an implicit C<next>. You can override that with an explicit C<last> if you're only interested in the first match.
So far I've found the porters very cooperative when it comes to doc patches, and I want to encourage everybody to submit patches when they find something that can be improved in the docs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: given-when last time through loop?
by ikegami (Patriarch) on Nov 19, 2009 at 15:36 UTC | |
|
Re^4: given-when last time through loop?
by 7stud (Deacon) on Nov 19, 2009 at 15:36 UTC | |
by moritz (Cardinal) on Nov 19, 2009 at 15:57 UTC | |
by 7stud (Deacon) on Nov 20, 2009 at 13:23 UTC |