in reply to Using the result of s///
That's what the first result is equal to. The second example prints the new $string, which is what you want in this case.$string = 'This_has_underscores'; $result = $string =~ s/_/ /g; print $result;
elusion : http://matt.diephouse.com
|
|---|