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