Not really. If Unix-based and kill(1) supports -l , you
could grab the list and set the other signals to ignore:
[non-portable code snipped]
Instead of giving platform-specific code that returns tainted data, why
not just use the example given in perlipc?
I quote:
The names of the signals are the ones listed out by "kill -l" on
your system, or you can retrieve them from the Config module. Set up an
@signame list indexed by number to get the name and a %signo table
indexed by name to get the number:
use Config;
defined $Config{sig_name} || die "No sigs?";
foreach $name (split(' ', $Config{sig_name})) {
$signo{$name} = $i;
$signame[$i] = $name;
$i++;
}