On Thu, 2007-02-22 at 23:20 +0530, Dharshana Eswaran wrote: > I forgot to mention, First step is to Search for the file in which the > string occurs
A list of files use either function glob or opendir (perldoc -f ???) I wonder how you are going to check for a string without opening it. You may want to run a shell command. > Second step is to Open the file in which the string is present perldoc -f open > Third Step is to Get the file pointer to the line in which the string > occurs. You either mean the line number or the actual position. seek and tell do positioning. > NOTE: I might have to use the code both in Unix and Windows platform. I dont > have a problem if i have two different solutions for each of the platforms > or if one solution for both the platforms. You will always get more help when you show what you have coded yourself. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/