I'm trying to get the line number of a particular search string from a log file using PERL.

I'm using grep -n to do that. But I'm getting into a problem because it contains a white space in it and the command starts considering the other words as name of the file and says the file name is not there.