in reply to Re^2: Combining two .csv files
in thread Combining two .csv files
You can read the files in tandem:
while (defined(my $min = <MIN>) && defined(my $max = <MAX>)) { ... }
Take a look at open. The first two examples there show (the preferred) 3-argument form and also use $! for a more meaningful error message if something goes wrong.
Add use strict; and use warnings; to the top of your code to get messages about problems that may exist. And, as you indicate you're new to Perl, also adding use diagnostics; will provide more verbose messages.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Combining two .csv files
by naturalsciences (Beadle) on Nov 29, 2010 at 16:14 UTC |