Why does this print the number of matches:
$string = 'This_has_underscores';
print $string =~ s/_/ /g;
While this returns my new string: (Desired result)
$string = 'This_has_underscores';
$string =~ s/_/ /g;
print $string;
In reply to Using the result of s/// by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |