Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use File::Find; $ct = 0; sub fetcher { if( $_ =~ /\.html?$/) { my $name = $File::Find::name; open ( F, $name ) or die "$!: $name\n"; while( $line = <F> ) { for $i ($line =~ /\@(?:ff|jj|bb)/g) { print "$i\n"; $ct++; } } close F; } } find( \&fetcher, 'C:\\inetpub\\wwwroot' ) || warn "$!\n"; print "\n\nTotal Count = $ct\n\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NT Server script (nlink?)
by tye (Sage) on Jun 25, 2003 at 19:35 UTC | |
by Anonymous Monk on Jun 25, 2003 at 19:37 UTC | |
by Anonymous Monk on Jun 25, 2003 at 20:57 UTC | |
|
Re: NT Server script
by particle (Vicar) on Jun 25, 2003 at 19:15 UTC | |
by Anonymous Monk on Jun 25, 2003 at 19:32 UTC |