That's one less layer of indirection and conceptually clearer to me, at least. TIMTOWTDI!#!/usr/bin/perl -w use strict; sub do_something { print "This is what I do.\n"; exit; } $SIG{INT} = \&do_something; while (1) {}
In reply to RE: Setting up signal handlers for an object with access to $self
by chromatic
in thread Setting up signal handlers for an object with access to $self
by ZZamboni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |