in reply to Re: Read contents of multiple files into new file and then move source files?
in thread Read contents of multiple files into new file and then move source files?
@ARGV = glob('*.txt'); if (@ARGV){ my @MOVE = @ARGV; while (<>) { print $FH $_; $COUNT++; } foreach $FILE (@MOVE) { move($FILE, $OUTDIR) or die "Could not move $FILE to $ +OUTDIR: $!\n"; } }
|
|---|