Compile_Bugs/dual_select
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 | print STDOUT "STDOUT\n"; |
| 12 | print STDERR "STDERR\n"; |
| 13 | |
| 14 | # select ('^d to exit') { } |
| 15 | |
| 16 | # Found during testing that I can't actually print output and know |
| 17 | # the order in which the words will appear! Linux differs from Solaris! |