rajkrishna89 has asked for the wisdom of the Perl Monks concerning the following question:
Im trying to grep a keyword "function()" in many files and return the file names in which it is present...the problem is function() is in small letters whereas its in caps in the files i hav used /i to solve the issue..but currently im getting the files in which the following occurences are ther: function();
i dont want to extract function which is ending with semicolon any idea monks:
the snippet is:
if ( grep /$Function\(\)/i, <FILE> )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl GREP
by marto (Cardinal) on Jan 04, 2012 at 12:24 UTC | |
|
Re: Perl GREP
by choroba (Cardinal) on Jan 04, 2012 at 12:23 UTC | |
|
Re: Perl GREP
by Marshall (Canon) on Jan 04, 2012 at 14:16 UTC |