No such thing as a small change | |
PerlMonks |
Re: Handle Ctrl-C on Windowsby jethro (Monsignor) |
on Aug 28, 2012 at 09:49 UTC ( [id://990203]=note: print w/replies, xml ) | Need Help?? |
I don't get that warning on linux, so can't test, but the problem seems to be that the chomp is executed even after you pressed ctrl-C. Did you try to move the chomp on a line by itself or add a noop inbetween so that there is another statement to break on?
In Section
Seekers of Perl Wisdom
|
|