I have a perl script written up but would like to reduce the size as much as possible. Are there any utilities to pull out unneeded tabs, white space, etc.
A perl script to do that should not be that hard to write. I'd do it in two passes.
On the first pass, I'd remove all comments, any whitespace that appears at the beginning of each line, and any whitespace on either side of a parenthesis or math symbol.
On the second pass I'd remove any hard return that does not appear inside quotes.
Perl's very forgiving about whitespace in source code, but I would keep a copy of the original in a safe place.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.