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;
A word spoken in Mind will reach its own level, in the objective world, by its own weight
  • Comment on Re^4: s/// with an empty pattern uses the previous pattern of a s///
  • Download Code