I am writing a script to parse C file containing functions. for each function , I have to add logs at 2 places :
(1) when the func is entered
(2) when func is exiting.
I tried it , it even worked with a fairly complex regex , but it sometimes adds logs in struct,if,else,while blocks.
Does anyone have any idea as to such thing already existing in Perl ?