use Regexp::Common; $code_string =~ s/$RE{comment}{C}//g; [download]
In reply to Re: Kill C style comments by waswas-fng in thread Kill C style comments by sonic