in reply to Re^3: removing comments
in thread removing comments

Or, given the file name is in @ARGV anyway:

$^I = '.bak'; /^#/ or print while <>;

to in place edit and generate a backup file.


DWIM is Perl's answer to Gödel