Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: Signal handling in Perl Message-ID: <129119@uunet.UU.NET> Date: 15 Apr 91 22:04:25 GMT References: <1991Apr15.141316.46228@vaxb.acs.unt.edu> <1991Apr15.211051.3326@convex.com> Organization: UUNET Communications Services, Falls Church, VA Lines: 21 In article <1991Apr15.211051.3326@convex.com> tchrist@convex.COM (Tom Christiansen) writes: >From the keyboard of billy@vaxb.acs.unt.edu: >: >: $sig{'INT'}='IGNORE'; >: >You should be using %SIG not %sig for this. Case counts. > >--tom How about `*sig = *SIG'? [GROAN] Unfortunately, it doesn't quite work. The right variable gets set, but the signal handler never does. It's not the pointer that's special, it's the name. Somehow I can't bring myself to call this wrong :-) -- [rbj@uunet 1] stty sane unknown mode: sane