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.
In reply to Re: command line search and replace
by AnomalousMonk
in thread command line search and replace
by drodinthe559
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |