Trying to look online for exactly how while binds $_. 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 realize that grep and map return values, where while and foreach don't. Still, seems like they should be documented in the same place. Or am I thinking about it wrong?
throop
In reply to 'while', 'foreach' not in perlfunc by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |