meenac has asked for the wisdom of the Perl Monks concerning the following question:
$LOGDIR = 'C:\temp\logs'; open(INPUT, "$LOGDIR\\sec-ghost01-12-09-2004-21-43.csv") || die ("can +not open log file\n"); foreach my $line (<INPUT>) { chomp($line); process each line }
Edited by davido to repair code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opening multiple files for input
by William G. Davis (Friar) on Dec 14, 2004 at 23:32 UTC | |
|
Re: Opening multiple files for input
by sgifford (Prior) on Dec 14, 2004 at 23:48 UTC | |
|
Re: Opening multiple files for input
by Zed_Lopez (Chaplain) on Dec 14, 2004 at 23:35 UTC | |
|
Re: Opening multiple files for input
by larryp (Deacon) on Dec 15, 2004 at 06:34 UTC | |
|
Re: Opening multiple files for input
by rev_1318 (Chaplain) on Dec 15, 2004 at 15:11 UTC |