in reply to Re^4: open3 and illegal seeks
in thread open3 and illegal seeks
The other changes you suggested do prevent the error from happening.
No, it means an error never occurred in the first place.
What's setting $!?
Some earlier call or some internal call. You could use command line utility strace if you think it's relevant.
I do see how the "or die" on the join could be a logic error
Two problems:
Your use of $! in the error message when it's not warranted.
It does a bad job of detecting an error when one occurs. An error could occur and you wouldn't even know it. (False negative)
If you *also* want to make sure you received more than zero characters, that's fine. Add that check.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: open3 and illegal seeks
by brainsick (Sexton) on Jul 07, 2009 at 20:15 UTC | |
by ikegami (Patriarch) on Jul 08, 2009 at 16:00 UTC | |
by brainsick (Sexton) on Jul 08, 2009 at 16:28 UTC | |
by ikegami (Patriarch) on Jul 08, 2009 at 17:34 UTC | |
by ig (Vicar) on Jul 10, 2009 at 03:59 UTC |