Regarding Perl style "for" loops, I think in general, if I was using the "(;;)" format then I would use "for" and if I was using the "$var (list)" format I would use foreach. But there could be exceptions and I'm not sure how to articulate it any better than in my first attempt. (^_^;) :-/
Regarding the missing text, this is what I wrote:
My point about discouraging "for" loops was if the two were actually two distinct looping styles (i.e. that "foreach" was not a synonym for "for", so that "for" could only be used for C-style for loops). Sorry if there was any confusion over that.If you see all of that then what I meant was "my comment above about discouraging the use of 'for' loops was predicated on restricting "for" loops to only the C-style (;;) syntax".
Elda Taluta; Sarks Sark; Ark Arks
In reply to Re^13: eof not recognised when applying diamond operator to invocation arguments?
by Argel
in thread eof not recognised when applying diamond operator to invocation arguments?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |