while(my $line = <$in>) { $line =~ s/ .* report [s]? .* ; .* //sx; print $line; } #### #include #include "report.h" void main() { #ifdef CHECK_REPORT #endif #if defined (REPORT_ENABLE) #endif printf("The execution is completed\n"); }