in reply to 'while', 'foreach' not in perlfunc
Oddly enough, searching at perl.org in index-functions does not turn up documentation for while, nor for foreach. The other Perl iterative constructs, grep and map are there, though.
I personally believe it's not odd at all: it is to be expected, since map and grep are not simply "iterative constructs" but actual functions, whereas while and for are flow control statements or statement modifiers. I believe that in Perl 6 they will become (more akin to) real functions, but that's not the case as of now.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'while', 'foreach' not in perlfunc (Perl 6)
by moritz (Cardinal) on Jun 14, 2008 at 14:20 UTC |