in reply to Re: STDIN schizofrenia
in thread STDIN schizofrenia
While STDERR is a file-descriptor to your terminal (if you haven't redirected stdout), it is only an outbound channel... so you need to open an inbound channel to the same device if you want to read from it.open STDERRIN,"<&STDERR" or die "Could not dupe STDERR for input: $!\n +"; my $line = <STDERRIN>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: STDIN schizofrenia
by Abigail-II (Bishop) on Oct 13, 2003 at 16:22 UTC | |
by etcshadow (Priest) on Oct 13, 2003 at 19:26 UTC | |
by Abigail-II (Bishop) on Oct 13, 2003 at 22:15 UTC | |
by etcshadow (Priest) on Oct 13, 2003 at 22:51 UTC | |
by Abigail-II (Bishop) on Oct 14, 2003 at 08:40 UTC | |
by Abigail-II (Bishop) on Oct 15, 2003 at 22:39 UTC |