On Tue, 09 May 2006, Ng, Bill wrote:
> It seems that my capturing of $SIG{INT} fails if I use "<>;" as a way
> of making perl wait for me to hit <CTRL-C>. If I use "while () {};"
> instead, it works just fine. Interestingly, this is not the way it
> works on my Linux machines or my 5.8.4 build. On those machines,
> <CTRL-C> prints what I want it to print when waiting on "<>;"
As I wrote to you in response to your private message, I get the
INT signal even while waiting for <> input (pressing Ctrl-C when
the program waits for input):
C:\>perl -e "$SIG{INT} = sub { print qq(This works\n) }; <>"
This works
C:\>perl -e "print $ActivePerl::VERSION"
817
This is running on Windows XP from cmd.exe. Is there anything special
about your setup? Could you try this on a different box?
Cheers,
-Jan
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs