Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: lexical variables and signal handlers

by broquaint (Abbot)
on May 27, 2003 at 14:50 UTC ( [id://261003]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://261003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-19 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found