|
|
| go ahead... be a heretic | |
| PerlMonks |
Re^2: How do I make the garbage collector throw an exception when it fails to auto-close a filehandle?by Aristotle (Chancellor) |
| on Jan 13, 2007 at 07:37 UTC ( #594506=note: print w/ replies, xml ) | Need Help?? |
|
Yah, I’m aware of the concept. I would use it (more readily than a special IO class, possibly, although my opinion on that changes every other day), but for a single close $fh or die "Couldn't close: $!" statement it just doesn’t seem worthwhile. It’s maddening – it’s a simple single statement whose absence is not worth complicating the code for, but it’s still annoying to have to write it, and there’s so little missing to make it unnecessary… Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||