in reply to command line search and replace

BTW: Use of warnings produces the same unwanted result described in the OP plus a helpful warning (xxx is a text file with whitespace):

>perl -wMstrict -i.bak -pe 's/\s//g' xxx Useless use of a constant (s/\s//g) in void context at -e line 1.

Replies are listed 'Best First'.
Re^2: command line search and replace
by drodinthe559 (Monk) on Dec 06, 2011 at 22:08 UTC
    That makes sense. Thanks for your help.