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
In reply to Re^3: Combining two .csv files
by kcott
in thread Combining two .csv files
by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |