in reply to Signals and Functions w/ perameters

You cannot store parameters with a reference to a sub. One way around this is to do something like this.

local $SIG{'TERM'} = sub { UndoStartTime($dbh,$ToolTrackingID); };

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
Re: Re: Signals and Functions w/ perameters
by nekron99_ (Acolyte) on Jun 18, 2003 at 22:32 UTC
    antirice - You deserve a beer =) Thank you that fixed it! WOOOT!