in reply to Re^2: Assign multiple scalars the same value
in thread Assign multiple scalars the same value
Incidently, diotalevi makes a good point concerning ensuring that you have the same number of things on both sides of the assignment which is not an issue in my example.my @signal = qw(ABRT STOP TERM INT); @SIG{ @signal } = (sub { kill 9, $pid; exit }) x @signal;
Cheers - L~R
|
|---|