#!/usr/bin/perl use strict; use warnings; my $error; sub parse { my $fh = shift; my $content = ''; while( <$fh> ) { unless( s[^#include (.+)$][] ) { chomp; warn "Non-include line '$_' untouched\n"; $content .= $_ . "\n"; } else{ local $_ = $1; if( m[ #include // A comment #include "AlyLee.h" #include "Common.h"