will print a single 1, and an unlimited number of 2s.$x = "abc"; say 1 while $x =~ /c/g; say 2 while "$x" =~ /c/g;
In reply to Re: Program enters infinite loop, can you see why?
by JavaFan
in thread Program enters infinite loop, can you see why?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |