in reply to Re: Read all the file path having text document
in thread Read all the file path having text document
use File::Find::Rule; my $rule = File::Find::Rule->new; $rule->file; $rule->name( '*.txt' ); my @files = $rule->in("/" ); open(W,"> index.txt")|| die "can't open index.txt file"; foreach $files_name (@files) { print W $files_name ; print W "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read all the file path having text document
by dwhite20899 (Friar) on Dec 01, 2008 at 02:20 UTC |