XP is just a number | |
PerlMonks |
Re: lexical variables and signal handlersby broquaint (Abbot) |
on May 27, 2003 at 14:50 UTC ( [id://261003]=note: print w/replies, xml ) | Need Help?? |
Other than putting this var into global scope is there anyway I can pass the var to the signal handler?Short of either declaring the lexical into a scope visible and above that of the signal handler or using a package variable there's nothing you can do using bare bones perl. However you can use PadWalker to access variables outside of your current scope, the only problem is that it might not play well with signal handlers. HTH
_________
In Section
Seekers of Perl Wisdom
|
|