Some comments about this code:
First of all I find open (FILTER, "$out1") or die ("cannot open input file out1\n") more readable then the code you have
Second, you really should be using open (FILTER, "<", $out1), and perhaps you should included $! in your die-string, it contains the error... (such as file not found, permission denied, ...)
Third, intending your code makes it much more readble (or did something go wrong in pasting it here?), perhaps you should read the perlstyle POD...
Now the problem itself:
You read FILTER, you split it, but you don't do anything with it...
And it might be easier if you post some sample input and output... and is there a certain order in the file? and/or is one file usually smaller then the other one? or are they about the same size?)
In reply to Re: Dealing with large files in Perl
by Animator
in thread Dealing with large files in Perl
by tester786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |