- or download this
my $chld_flag = 0;
...
# Process user command, if any
# Such as launch child processes
}
- or download this
$SIG{'USR1'} = sub { $flag = 1; };
...
DoWork();
};
- or download this
eval {
eval {
...
}
};
};
- or download this
#!/usr/bin/perl
...
exit(1);
# EOF