in reply to Is the signal handler supposed to work like this?
Hmm...your "ignoring SIGINT" approach works for me on Windows:
perl 5.10.0 MSWin32-x86-multi-thread (strawberry perl).#!/usr/bin/perl use warnings; use strict; my @lines; { $SIG{INT} = 'IGNORE'; @lines = <STDIN>; } print "You entered: " . join("", @lines)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Is the signal handler supposed to work like this?
by dpmott (Scribe) on Sep 05, 2008 at 02:49 UTC |
In Section
Seekers of Perl Wisdom