in reply to Re^2: close or die
in thread Making an array out of each line in a file

That's actually not complete information since Perl's close is more complicated than the corresponding C call. In particular when you close a file in Perl it also flushes data to the filehandle, which can fail if the filesystem is full.

Would you like to get an error message when your file got truncated because the filesystem was full?