XP is just a number | |
PerlMonks |
Different way to use while loopby ChuckP (Novice) |
on Jan 09, 2015 at 03:25 UTC ( [id://1112691]=perlquestion: print w/replies, xml ) | Need Help?? |
ChuckP has asked for the wisdom of the Perl Monks concerning the following question: Greetings, I just had a co-worker ask what this code did and I didn't know.
It seems to work just like: while(1) { s/^FOO/BAR/g; print "$_"; }Any thoughts?
Back to
Seekers of Perl Wisdom
|
|