in reply to lexical variables and signal handlers

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

_________
broquaint

  • Comment on Re: lexical variables and signal handlers