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 }
In reply to Printing just the file name for all the cases by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |