next is not really useful, and dare i say obsolete, since there is no other code aside the regexp conditional in the foreach block
I'd say I agree it's not useful in this code, but calling it obsolete doesn't make a whole lot of sense. You must be operating with a different definition of obsolescence than I am. ;-)
As for the grep rewrite, there is a gotcha, which might complicate things in certain situations. But i'll save it for another day
Please, by all means, don't save it for another day. Even for those of us who might already know of this "gotcha", mentioning it without even narrowing it down is not all that nice (and no, linking to the grep docs does not narrow it down). :-)
In reply to Re^4: Missing $ on loop variable
by revdiablo
in thread Missing $ on loop variable
by superfrink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |