in reply to Re^7: Error when running on larger files
in thread Error when running on larger files
I've found the cause. I used incorrect syntax to try and close multiple filehandles
close ($OUT,$OUT2,$IN)
But despite using warnings + strict, I never received a message about this until I switched back to the system Perl. As the input file for this chunk of code is created earlier in the script - not having the filehandle closed led to the error.
I'm still unclear as to how the script was able to run to completion on some, typically smaller input files - but not others given that almost no memory is required until this step.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Error when running on larger files
by BrowserUk (Patriarch) on Jun 28, 2016 at 12:05 UTC | |
by K_Edw (Beadle) on Jun 28, 2016 at 12:44 UTC |