How bizarre. I've tried running it on 5.25.2 and 5.24.0 installed via Perlbrew. Same error each time.
It seems to be caused by something earlier in the script (this chunk of code forms a subsection of it) - running my file using your wrapped code allows it to run to completion.
Why exactly it fails near the end of a file when it's part of a larger script but not when it's separate is beyond me.
In reply to Re^6: Error when running on larger files
by K_Edw
in thread Error when running on larger files
by K_Edw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |