in reply to convert directory content to dbf
my $dirpath = 'x/y/z'; my $dh = opendir $dirpath or die $!; map ProcessFile( "$dirpath/$_" ), readdir $dh; closedir $dh; sub ProcessFile { my $SOURCEFILE = shift; ( -f $SOURCEFILE ) or return; # ordinary files only my $TARGETFILE = $SOURCEFILE . '.out'; my $REPORTFILE = $SOURCEFILE . '.rpt'; # ... insert OP code here }
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: convert directory content to dbf
by johngg (Canon) on Feb 08, 2007 at 19:05 UTC | |
|
Re^2: convert directory content to dbf
by oblate kramrdc (Acolyte) on Feb 08, 2007 at 16:56 UTC | |
by johngg (Canon) on Feb 08, 2007 at 18:56 UTC |