Try :
$SIG{SIGTERM} = sub { ..something..} ; #-- in perl
this is equivalent to trap '... something...' SIGTERM
thanks,
Jay
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: traps in perl
All,
Is there a method or module that allows you to create a trap? For
instance, in ksh or any shell I can create a system trap that will
disallow any keystroke, other than the expected user input specifically
cntrl C, D, \ or U. All of these are mapped to a SIGNAL in
/usr/include/sys/signal.h.
thanks
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
614-566-4145
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>