Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if ($line =~ /\#include "\w".h | \#include <\w>.h)) #check if +it is of the format #include "word.h" or #include <word.h> { my $header_file = $line =~/\#include \"(\w)\".h| /#include\<\ +w>.h> #get only the header file }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking the include form and getting only the header name
by Eliya (Vicar) on Mar 19, 2011 at 23:11 UTC | |
by Anonymous Monk on Mar 20, 2011 at 01:15 UTC | |
by Eliya (Vicar) on Mar 20, 2011 at 01:22 UTC | |
by Anonymous Monk on Mar 20, 2011 at 01:47 UTC | |
by Eliya (Vicar) on Mar 20, 2011 at 01:50 UTC | |
| |
by Anonymous Monk on Mar 20, 2011 at 01:19 UTC |