Subject: | print() on closed filehandle META |
I get the following warning occasionally when when building a par file.
print() on closed filehandle META at /usr/lib/perl5/site_perl/5.8.0/PAR/Dist.pm line 168.
It looks like on line 134 the old file is opened (would it make sense to do a stat here to ensure that exists?) and its results copied to the new META file. Both the META and OLD_META fh are closed at the end of the condition, but a new set of data is written on the META handle on line 168.
I can't quite figure out why its necessary to use the old file and not write anew each time...
Anway, I would either move the second print into the else block or do an unlink if the file exists prior to opening the file.
thanks,
--eric