If you want things to be munged in place use -i
perl -i.bak -pe 's/^\s+//' foo
If you don't want a backup copy, omit the backup suffix. See perldoc perlrun for more information.
In reply to Re: strip white space one-liner
by Fletch
in thread strip white space one-liner
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |