in reply to Re: next if loop
in thread next if loop
You should check the return value of your close. It might fail.
What's the point? If the filehandle isn't going to close, there's not much you can do about it, except maybe complain about it to STDERR. I suppose you could try calling close again and pray that it will work this time, but if it failed the first time, it will probably fail again.
Is there really any use to catching errors from close?
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: next if loop
by Abigail-II (Bishop) on Nov 20, 2003 at 19:48 UTC | |
|
Re: Re: Re: next if loop
by davido (Cardinal) on Nov 20, 2003 at 19:15 UTC |