in reply to Re: Signals and Functions w/ perameters
in thread Signals and Functions w/ perameters

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
  • Comment on Re: Re: Signals and Functions w/ perameters

Replies are listed 'Best First'.
Re: Re: Re: Signals and Functions w/ perameters
by bobn (Chaplain) on Jun 18, 2003 at 22:45 UTC
    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