Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
INPUT:- #include "string.h" --> below code prints header #include <stdlib.h> --> below code prints header #include <sys/dispatch.h> --> not able to get the header name(dispatc +h.h) if ($line =~ /#include [<"](\S+\.h)[>"]/) { print "$1\n"; #not printing the header third case }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing just the file name for all the cases
by GrandFather (Saint) on Mar 20, 2011 at 08:24 UTC | |
by Anonymous Monk on Mar 20, 2011 at 08:49 UTC | |
by GrandFather (Saint) on Mar 20, 2011 at 08:58 UTC | |
|
Re: Printing just the file name for all the cases
by moritz (Cardinal) on Mar 20, 2011 at 08:52 UTC | |
|
Re: Printing just the file name for all the cases
by Marshall (Canon) on Mar 21, 2011 at 03:58 UTC | |
|
Re: Printing just the file name for all the cases
by Anonymous Monk on Mar 20, 2011 at 08:19 UTC | |
by Anonymous Monk on Mar 20, 2011 at 09:07 UTC | |
by Anonymous Monk on Mar 20, 2011 at 09:12 UTC |