in reply to Can't open SECOND input file given as script parameter ?

You have:
open OUTFILE, "results" or die "\nCan't open $file2 for reading: $!\n" +;
Are you sure your code isn't failing here? That is, it cannot open the file 'results' and claims it cannot open $file2?

Note also that you open this file for reading, not writing (and you try to print to it, so you need it open for writing).

Replies are listed 'Best First'.
Re^2: Can't open SECOND input file given as script parameter ?
by gyre007 (Novice) on Oct 03, 2008 at 09:28 UTC
    Yes ...YOU ARE ABSOLUTELY RIGHT! Thanks, that was the problem :(... Again thanks!

      ++

      Cut'n'paste claimed another victim... :)

      Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."