in reply to Signals and Functions w/ perameters

It won't call the function right away if you did
local $SIG{TERM} = \&UndoStartTime;
instead.

Also, since when can you nest sub statements?

--Bob Niederman, http://bob-n.com

Replies are listed 'Best First'.
Re: Re: Signals and Functions w/ perameters
by nekron99_ (Acolyte) on Jun 18, 2003 at 22:28 UTC
    bob - it localizes the function to the parent function only...has been there as long as i have been coding in perl. circa 3 years
      Yer right, I guess - but funny things start happening to the lexical varibles defined inside the outer sub but outside the inner sub - so much so that a warning message exists:
      Variable "$x" will not stay shared at ./nested.pl line 9.
      So I don't do this, and thought it was in fact not allowed.

      --Bob Niederman, http://bob-n.com