in reply to Re^2: Editing the contents of a variable
in thread Editing the contents of a variable
The s/ //g is OP's. Comment (question) is mine as, (for most purposes I can imagine in the background of the OP,) it makes no obvious sense.
Your reply, however, calls attention to that, which is a good thing, if OP is cargo-culting or had missed the implications. + +
In Section
Seekers of Perl Wisdom