[comp.lang.perl] keys %SIG

aas@boeygen.nr.no (Gisle Aas) (10/22/90)

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