So, IMO, you almost never want to die on close failure, warn maybe, but not die.
If a close fails, I surely want to die, as this is an unrecoverable error. Well, I could just warn, but then? what next? sleep and wait for a signal, and later do what?
If a close fails, most certainly I have data inconsistency - e.g. a corrupt file -, and that's why I have to stop further processing immediately.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^4: using lexically scoped variable as a filehandle
by shmem
in thread using lexically scoped variable as a filehandle
by varian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |