/ Published in: Perl
Expand |
Embed | Plain Text
Hi All, Need a help to get the function name and associated line number in a file using perl. For example: Consider file name is a.c and it is having functions definition in the following format Return type Function_Name( Int a, Char *b … ) { …….. …… } I need out put in the following format: Line No : Function_Name NOTE: Need to consider the case of opening brace “{” of function definition may start immediately after closing parenthesis of function. Ex: func_Name(.., ..) { as in above it appeared in the new line. Kindly help me out to solve this problem at the earliest. It’s a requirement in our project.
You need to login to post a comment.
