That fails. But remove the "i" in the substitution and $1 is defined. Why would case-insensitive make any difference?$test = <<'END'; XXWY XXWZ END $count = $test =~ s#(XXW?Y)##gi; print "REMOVED: <<$1>>\nCOUNT: $count\n";
In reply to Re^2: Bug or feature? s/// and the g option
by Belgarion
in thread Bug or feature? s/// and the g option
by Belgarion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |