try this:

open I, "inputfile";
my @files;
while(<I>) { if (/#include\s*(.+?)/sig) { push @files, $1 } }

if i understand your problem correctly, @files should hold all the
"foo/bar.h" stuff

hth
Jos Boumans

> I need to match the following type of #include statement found in a C
> header file:

> #include " test/bar.h "
> #include " other/foo.h "


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to