Now, the reason that foreach(@array) works the way you think it does is because that's a property of foreach. while does not have this property. That may have been the piece of info you were missing.
In reply to Re: When does $_ get used?
by dragonchild
in thread When does $_ get used?
by elbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |