Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub rout { local *FILE; if( $_ =~ /\.html?$/) { open ( FILE, $name ); while($hit = <FILE>) { if($hit =~ /(\%?:ff|jj|bb.+)/) { print "Hit = $1\n"; } } close FILE; } } find( \&rout, "/disk1/disk2" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File searching
by broquaint (Abbot) on Jun 20, 2003 at 11:56 UTC | |
by diotalevi (Canon) on Jun 20, 2003 at 11:59 UTC | |
by Anonymous Monk on Jun 20, 2003 at 19:13 UTC | |
by diotalevi (Canon) on Jun 20, 2003 at 19:20 UTC | |
by Anonymous Monk on Jun 20, 2003 at 19:53 UTC | |
by zby (Vicar) on Jun 20, 2003 at 12:16 UTC | |
|
Re: File searching
by gjb (Vicar) on Jun 20, 2003 at 12:42 UTC |