Perl: the Markov chain saw | |
PerlMonks |
Re^5: Stop Command In Perlby mbethke (Hermit) |
on Jul 12, 2012 at 22:21 UTC ( [id://981521]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|