in reply to Re^8: Checking the include form and getting only the header name
in thread Checking the include form and getting only the header name

Never mind.I figured out the above query

Can anyone advise how can I change the below code for the below given input?

INPUT:- #include "string.h" -->works for below code #include <stdlib.h> --> words for below #include <sys/dispatch.h> --> doesn't work,should work for all the thr +ee cases if ($line =~ /#include [<"](\S+\.h)[>"]/) { print "$1\n"; }

Replies are listed 'Best First'.
Re^10: Checking the include form and getting only the header name
by Anonymous Monk on Mar 20, 2011 at 06:49 UTC
    #include <sys/dispatch.h> --> doesn't work,should work for all the three cases

    Of course it works

      Doesnt work in the sense,am not able to get just the header name

        Doesnt work in the sense,am not able to get just the header name

        So put in another line of code to get just the header name? Yup