nekron99_ has asked for the wisdom of the Perl Monks concerning the following question:
sub Function { sub UndoStartTime { print "Explicative\n"; my ( $dbh, $ToolTrackingID ) = @_; my $Statement = " UPDATE JobQueue SET StartTime = NULL, PID = NULL WHERE ToolTrackingID = $ToolTrackingID;"; my $sth = $$dbh->prepare ( $Statement ); $sth->execute(); }; local $SIG{TERM} = \&UndoStartTime ($dbh, $ToolTrackingID); . . . # more code } #end Function
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Signals and Functions w/ perameters
by antirice (Priest) on Jun 18, 2003 at 22:26 UTC | |
by nekron99_ (Acolyte) on Jun 18, 2003 at 22:32 UTC | |
|
Re: Signals and Functions w/ perameters
by bobn (Chaplain) on Jun 18, 2003 at 22:22 UTC | |
by nekron99_ (Acolyte) on Jun 18, 2003 at 22:28 UTC | |
by bobn (Chaplain) on Jun 18, 2003 at 22:45 UTC |