in reply to Program enters infinite loop, can you see why?
$x = "abc"; say 1 while $x =~ /c/g; say 2 while "$x" =~ /c/g; [download]