Brad Grandorff am Donnerstag, 14. Dezember 2006 01:58: > I have managed to get a one liner working for modifying a particular file > in a directory, and I have also used arrays to read in then modify a > particular file... but I can't seem to do so using opendir and reading in > several files at once...
Could you post your one liner? > Basically I want to search several files within a directory for a > particular keyword, then replace that keyword with a user provided value.. > > I know it is pretty straightforward and simple... > Does anyone have any example scripts / code that I can look at? Did you look at File::Find? "...functions for searching through directory trees doing work on each file found similar to the Unix find command." You could use code from your one liner and modify it for usage in the wanted callback. Hope this helps Dani -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>