in reply to strip white space one-liner

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.