in reply to Re^4: Stop Command In Perl
in thread Stop Command In Perl
Sure, I'd expect the signal emulation in Windows to be incompatible in some way but this particular phenomenon I blame on buffering. It's very very likely that the "echo" will have finished its output before the Perl process gets scheduled again so by the time the while() starts the whole output is sitting in STDIN's buffer already. You could try spawning the Windows equivalent of "(echo one; sleep 1; echo two)" and kill()ing that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Stop Command In Perl
by monsoon (Pilgrim) on Jul 13, 2012 at 05:17 UTC | |
by mbethke (Hermit) on Jul 13, 2012 at 21:50 UTC |