Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $folder = '//..'; find (\&process, $folder); sub process { if ( $File::Find::name =~ /\learn$/ ) { open (FILE, $File::Find::name ) or die "Cannot open file: $!"; while ( $line = <FILE> ) { $/= "# input for"; $line =~ s/.....; push(@outLines, $line ); } print to outputfile... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::FInd subfolders
by Jenda (Abbot) on May 24, 2004 at 16:27 UTC | |
by Anonymous Monk on May 24, 2004 at 16:44 UTC | |
by Jenda (Abbot) on May 24, 2004 at 18:49 UTC |