While attempting to read the filehandle that you think points to a file, you get this error:
Maybe this means the script is reading from the inline __DATA__ section, and you're trying to write to it?
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.