in reply to Cleaning Whitespace from Source Code
Not perl, but many flavours of *NIX come with a program indent which reformats C code. If it's not available out of the box on your particular platform there's also a GNU version.