Path: utzoo!attcan!uunet!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!nuug!ulrik!ulrik!aas From: aas@boeygen.nr.no (Gisle Aas) Newsgroups: comp.lang.perl Subject: keys %SIG Message-ID: Date: 22 Oct 90 12:31:14 GMT Sender: news@ulrik.uio.no (USENET News System) Distribution: comp Organization: Norwegain Computing Centre, Oslo, Norway Lines: 18 I wanted to make a new enhanced process killer which used "real" signal names. Is there a way to get hold of the signal names that perl obviously knows about. One way I thought might work was: @signames = keys %SIG; but it doesn't. The only solution I came up with was to write: @signames = split(' ', `/bin/kill -l`); I don't like the overhead of a new process for something as simple as this. Can't we have %SIG with predefined keys? -- Gisle Aas | snail: Boks 114 Blindern, N-0314 Oslo, Norway Norsk Regnesentral | X.400: G=Gisle;S=Aas;O=nr;P=uninett;C=no voice: +47-2-453561 | inet: Gisle.Aas@nr.no