in reply to Re^3: using lexically scoped variable as a filehandle
in thread using lexically scoped variable as a filehandle
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}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: using lexically scoped variable as a filehandle
by BrowserUk (Patriarch) on Feb 21, 2007 at 17:53 UTC | |
by misterwhipple (Monk) on Feb 21, 2007 at 21:21 UTC | |
by BrowserUk (Patriarch) on Feb 21, 2007 at 22:28 UTC | |
by shmem (Chancellor) on Feb 21, 2007 at 18:27 UTC |