in reply to reprise searching two files
One observation is that I don't think you need the %import hash. (In fact you aren't using it later in your script) You could append the items you find in the second file to the items you have already collected in the %import hash.
Hope that helps.while (<IMPORT>) { my ( $machine, $user, undef, undef, undef, undef, $locale, und +ef ) = split(/,/,$_); push(@{$scanned{$machine}}, $user, $locale); } close (IMPORT)
|
|---|