in reply to Stripping Comments from Source

I've tried using perltidy to strip comments and it worked for all my scripts.

Perltidy can selectively delete comments and/or pod documentation. The command -dac or --delete-all-comments will delete all comments and all pod documentation, leaving just code and any leading system control lines.