in reply to Using perl to extract data from multiple .txt files
open my $OUT, '>', 'output.txt' or die "output: $!"; for my $file (glob 'dir/*.txt') { # Your old code here. Remove opening the output file. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using perl to extract data from multiple .txt files
by MidLifeXis (Monsignor) on Nov 14, 2012 at 15:46 UTC | |
by choroba (Cardinal) on Nov 14, 2012 at 16:37 UTC |