in reply to Re^3: s/// with an empty pattern uses the previous pattern of a s///
in thread s/// with an empty pattern uses the previous pattern of a s///
I'm looking to replace whatever is in that scalar with the value of a different scalar.
Maybe I'm being dense, but why not just
$msg =~ s/.*/$replace/s;
|
|---|