>>>>> "Shawn" == Shawn <[EMAIL PROTECTED]> writes:
>> > close(REGION_NAME); >> >> You should also test to make sure the close worked, like you do for the >> opening. Shawn> I have never heard of such a thing? Is it a common problem to Shawn> have files not close? And if it does not close, what problems Shawn> would you have (assuming that the file would close upon exit). Shawn> Would there be an error if you tried to open the filehandle a Shawn> second time if it had not closed? A close will fail if the final flush causes an I/O error, like perhaps the filesystem is full. A close will also fail if the file is not open in the first place! In any case, close(2) has been called, and the file is now actually closed, so there's nothing further you can do with that filehandle. It's not like close(2) can fail. /me looks... Right. The only reason close(2) would fail is if you didn't have an open fd. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]