| 1 | #! /usr/bin/perl -w | ||
| 2 | |||
| 3 | 1 | my $VERSION = 1.02; | |
| 4 | |||
| 5 | 1 | ▶ | use blib; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use Shell::POSIX::Select; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | # Make sure that filehandle version of select doesn't get parsed as loopy one | ||
| 10 | |||
| 11 | # select ('^d to exit') { } | ||
| 12 | |||
| 13 | 1 | $old_fh = select (STDERR); $|=1; select ($old_fh); | |
| 14 | |||
| 15 | # select ('^d to exit') { } | ||
| 16 | |||
| 17 | 1 | 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 | |||