I have a file lets say it is called
filename.c
I am trying to find if the file is being used in one of the following ways
1. include("filename.c");
2. require("filename.c");
3. x = new filename() ;
4. class new_class extends filename
5. class new_class implements filename
6. filename::function()
I am wondering if perl will allow me to do all the above search at once or I just have to do them one by one?
And also I am not very good at regular expressions so I am wondering how can I grep the string
extends filename
implement filename
the space in between is giving me problems. Thanks in advance.
what is wrong with grep?