The output should be$s1 = "abc"; $s2 = "abc"; $s1 =~ s/.*/t/; $s2 =~ s/.*/t/g; print $s1; print "\n"; print $s2;
But the actual output ist t
Is this a bug?t tt
In reply to Incorrect pattern recognition problem. by b2sing4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |