For the record I didnt use this example as it would be just too perlish to special case /g inside of a while loop. I used the non while version to show that this is a general case, and not a consequence of using a while. That way people dont associate this use of /g with a while loop, especially as 99.9999% of the time one finds it in such a context.
In reply to Re^2: /g matches not really global in scalar context!
by demerphq
in thread /g matches not really global in scalar context!
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |