in reply to how do I print content of a cpp file without cpp comments?

Another way:
# first get the File::Comments module from CPAN use File::Comments; my $file = File::Comments->new(); print $file->stripped("city.cpp");