in reply to Re: Listing Files
in thread Listing Files
use File::Find; @ARGV = (); find sub { push @ARGV, $File::Find::name if /\.html\z/; }, qw(/home /v +ar/dir); while (<>) { next unless /\bExpired\b/; print "$ARGV\n"; # current filename close ARGV; # skip to next file now }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Re: Listing Files
by Anonymous Monk on Mar 01, 2002 at 16:15 UTC | |
|
Re: •Re: Re: Listing Files
by lordsuess (Scribe) on Mar 02, 2002 at 01:43 UTC | |
by merlyn (Sage) on Mar 02, 2002 at 07:46 UTC | |
by lordsuess (Scribe) on Mar 04, 2002 at 13:56 UTC | |
by merlyn (Sage) on Mar 04, 2002 at 14:38 UTC | |
|