Do as little as possible, the more stuff you do the more chance that things are happening at an inconvieniant time for your application... interrupted syscalls etc
Basically, just set a flag that your application will check and reset next iteration through...
my $running = 1;
$SIG{HUP} = sub { $running =0 }
while ($running){
do_stuff();
}
the handler only signals the outside that next time through it should stop...
@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;