http://www.perlmonks.org?node_id=833847


in reply to Perl Regex with Extra Spaces

What you want is y/ //s

Replies are listed 'Best First'.
Re^2: Perl Regex with Extra Spaces
by Anonymous Monk on Apr 09, 2010 at 23:57 UTC
    What is that exactly?
      Its the transliteration operator tr/// (same as y///), not to be confused with s///.

      Your problem is that you're not decoding UTF-16le.

        Well now the problem is that it outputs all the content from the psexec.exe, regardless of what I do, I use system, exec, or back ticks, and it will only effect some of it