in reply to Setting up signal handlers for an object with access to $self
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) {}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Setting up signal handlers for an object with access to $self
by ZZamboni (Curate) on Apr 19, 2000 at 23:03 UTC | |
by chromatic (Archbishop) on Apr 19, 2000 at 23:19 UTC |