Re: Help to store the result in some other file

2011-11-21 Thread John W. Krahn
Shlomi Fish wrote: Saravanan Murugaiah wrote: { if ($_ =~ /$find/i) Do you want to search for a case-insensitive substring? If so, you should use \Q and \E . What does case-sensitivity have to do with quotemeta? Besides $find is defined at the top of the program, it is

Re: Help to store the result in some other file

2011-11-21 Thread John W. Krahn
Saravanan Murugaiah wrote: Dear All, Hello, I want to search a particular word in some set of files, which are kept in a directory. In this, I want to display the search result in some other out file like including the line number with file name, etc. For example, if I want to search the word

Re: Help to store the result in some other file

2011-11-20 Thread Shlomi Fish
Hi Saravanan, On Mon, 21 Nov 2011 12:15:43 +0530 Saravanan Murugaiah wrote: > Dear All, > > I want to search a particular word in some set of files, which are kept in > a directory. In this, I want to display the search result in some other out > file like including the line number with file na