Greetings,
I just had a co-worker ask what this code did and I didn't know.
while (<FH>) { 1 while s/^FOO/BAR/g; print "$_"; }
It seems to work just like:
while(1) { s/^FOO/BAR/g; print "$_"; }Any thoughts?
In reply to Different way to use while loop by ChuckP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |