in reply to Signal calling to object method

Use this:
$SIG{INT} = sub { $self->gracefulExit };

Replies are listed 'Best First'.
Re^2: Signal calling to object method
by Anonymous Monk on Mar 07, 2017 at 16:22 UTC
    Whoops, the prior answer didn't show up on the mobile version (nor did the timestamp for some reason). Disregard.