Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: perlembed – global variables

by Aristotle (Chancellor)
on Dec 26, 2005 at 15:17 UTC ( [id://519153]=note: print w/replies, xml ) Need Help??


in reply to perlembed - global variables

Caveat lector: I don’t know what I’m talking about, because I haven’t written any code that embeds a Perl interpreter.

That said, if the embedding interface works the way I would intuitively expect it from my experience with the way things work when writing Perl that runs in a standalone interpreter then global variables are initialised when the code that initialises them runs, which is usually part of the file-level code, so that would be when you call perl_run; however, if the initialisation is within BEGIN blocks or such, it will happen when you call perl_parse.

And if mod_perl is any indication, then global variables are retained between function calls.

Makeshifts last the longest.

Log In?
Username:
Password:

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

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

    No recent polls found