in reply to open3 and illegal seeks
my $error = join('', <$PROG_STDERR>) or die "Error reading data from STDERR: $!";
Nothing in there indicates $! is meaningful. You're seeing the value left in $! by tell. At some level, tell($fh) is implemented as seek($fh,0,SEEK_CUR), but you can't use seek a pipe.
The best you can do follows:
my $error = join('', <$PROG_STDERR>); my $err = $!; die "Error reading data from STDERR: $err" if !eof($PROG_STDERR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open3 and illegal seeks
by brainsick (Sexton) on Jul 07, 2009 at 18:13 UTC | |
by ikegami (Patriarch) on Jul 07, 2009 at 18:20 UTC | |
by brainsick (Sexton) on Jul 07, 2009 at 19:09 UTC | |
by ikegami (Patriarch) on Jul 07, 2009 at 19:45 UTC | |
by brainsick (Sexton) on Jul 07, 2009 at 20:15 UTC | |
|