in reply to s/// operator and undef question...
I, however, am getting different results than you under 5.6:for my $is (1) { # one iteration with $is=1 $target =~ s//are/; }
I get the same results by dropping the loop entirely and doing just this:thare is a test of the servise
Like you, I find that odd. Somehow Perl is doing the equivalent of s/is/are/;.$target =~ /is/; $target =~ s//are/;
|
|---|