On 2/22/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote:

I need to search a particular string in a set of files in a directory. The
string appears only in one of the files in the directory.
 I need to retrieve the file name and then access the line of that
particular file in which the string occurs.

Can i know how i can go about this in Perl? What functions i might have to
use?

Have you seen the perlfunc manpage? It covers functions that you'll
find useful, such as open, print, index, chomp, glob, and last. Hope
this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to