
BillKSmith
Veteran
Oct 22, 2010, 6:22 AM
Post #3 of 4
(1331 views)
|
|
Re: [Nila] Need help with comment remover code...
[In reply to]
|
Can't Post
|
|
You can remove perl comments with a one line command. Is the syntax of rail comments the same? 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. Good Luck, Bill
|