Oct 22, 2010, 6:22 AM
Post #3 of 4
You can remove perl comments with a one line command. Is the syntax of rail comments the same?
Re: [Nila] Need help with comment remover code...
[In reply to]
Refer to -i and -p in perldoc perlrun.
perl -pi.bak -e"$_ = <> if /^\s*#/" your_file.pl
Your OS may require single quotes rather than double.