Perl print on closed filehandle

This is a common problem I come across when writing:

print() on closed filehandle OUTFILE at ./something.pl line 24, <INFILE> line 46.

99% of the time for me, the problem is attempting to load a file in a directory that doesn’t exist.


Imprint

This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at weblog2017@rubenschade.com. Thanks :).