Perl print on closed filehandle

Software

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.

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.