| 1 |
#! /usr/bin/perl -w |
| 2 |
|
| 3 |
my $VERSION = 1.02; |
| 4 |
|
| 5 |
use blib; |
| 6 |
|
| 7 |
use Shell::POSIX::Select; |
| 8 |
|
| 9 |
# Make sure that filehandle version of select doesn't get parsed as loopy one |
| 10 |
|
| 11 |
# select ('^d to exit') { } |
| 12 |
|
| 13 |
$old_fh = select (STDERR); $|=1; select ($old_fh); |
| 14 |
|
| 15 |
# select ('^d to exit') { } |
| 16 |
|
| 17 |
print STDOUT "STDOUT\n"; |
| 18 |
|
| 19 |
# Found during testing that I can't actually print output to both channels |
| 20 |
# and know the order in which the words will appear! Linux differs |
| 21 |
# from Solaris! |
| 22 |
|
| 23 |
# print STDERR "STDERR\n"; |
| 24 |
|