RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Paul
Thanks Peter, that's basically what I was looking, something more than the single hash I had. Now I have to figure what goes in these two lines > $page++ if /some page match here/; > $section++ if /some section match here/; But with some effort I should figure it out. --- Peter Eisengr

RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Paul
Thanks Peter, that's basically what I was looking, something more than the single hash I had. Now I have to figure what goes in these two lines > $page++ if /some page match here/; > $section++ if /some section match here/; But with some effort I should figure it out. --- Peter Eisengr

RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Paul
Thanks Peter, that's basically what I was looking, something more than the single hash I had. Now I have to figure what goes in these two lines > $page++ if /some page match here/; > $section++ if /some section match here/; But with some effort I should figure it out. --- Peter Eisengr

RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Peter Eisengrein
> Thanks Peter, that will help. > I am wondering if the use of anonymous hash and array > may make more sense here than doing a bunch of `grep`. > Can somebody show me how I would use it here? This isn't anonymous, but here's how I'd tackle it: ### untested my %dups; my %totaldups; foreach my

RE: Finding duplicate string in a set of files and sections

2006-04-05 Thread Paul
Thanks Peter, that will help. I am wondering if the use of anonymous hash and array may make more sense here than doing a bunch of `grep`. Can somebody show me how I would use it here? --- Peter Eisengrein <[EMAIL PROTECTED]> wrote: > > > > I have this program below that work correcly but > the

RE: Finding duplicate string in a set of files and sections

2006-04-05 Thread Peter Eisengrein
> > I have this program below that work correcly but the > performance is slow if the files are big. How can I > write a program to do this instead the one I wrote. > Without getting into too much detail there are several things that can help, all are related to the overall architecture of the c