i think you might find that any utility that strips comments in perl requires you to code according to certain rules. otherwise how do you unambiguously determine that a # isn't part of a string that is a piece of your code?
so some thinking generally has to go on before you start stripping out everything on a line that follows a #. otherwise that formerly-working code could quickly become uncompilable.
Stephen Carter, Random Mouse Software
Solving the Customer Review Management Problem
U R L: www.randommouse.com