in reply to Re: Re: Getting unique data from search.
in thread Getting unique data from search.
use strict; use File::Find; my %seen; sub wanted { if ( /\.html$/) { open F, "< $File::Find:name" or die "read $File::Find::name: $!\n"; local $_; while (<F>) { if ( /<title>(.*?)<\/title>/si ) { print "Title = $1\n" unless $seen{$1}++; } } close F; } } find( \&wanted, "/unixpath/webfiles" );
jdporter
...porque es dificil estar guapo y blanco.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Getting unique data from search.
by Anonymous Monk on Nov 14, 2002 at 19:41 UTC | |
by jdporter (Paladin) on Nov 14, 2002 at 20:12 UTC |