been trying to work out how to get PERL to traverse a given directory tree
looking for all files with the string _boot.js in the file name. then I want
to read each file and find all lines which start with the string "sWinReg"
and copy them in to an array with each line being places in a seperate cell
in the array.  So far I have written some code to run down the directory
tree which looks like this:

use File::Find;
find(\&wanted, 'D:\\app\\pages\\services\');

sub wanted {
        print "$File::Find::name\n";
}

this lists all the files in the given path, but I can't work out how to list
only files which contain "_boot.js" in the file name. I only want those
files and none of the others.and how would I put each line outputted in to
an array? Do a "foreach" and "push" each item in to the array as it's read
in from the FS?

Any pointers on how to do this?

Kaustav
--
Kaustav Bhattacharya
[EMAIL PROTECTED]
Mobile: +44 (0)771 421 6919

Reply via email to