in reply to Removing leading whitespace from a file?

You might want to look at perldoc:perlrun and the -p and -i options...also, you can't write to the same file you're reading from like that...
  • Comment on Re: Removing leading whitespace from a file?