Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: mod-perl and globals

by reptile (Monk)
on Jun 26, 2000 at 03:35 UTC ( #19778=note: print w/replies, xml ) Need Help??


in reply to mod-perl and globals

Depends. If you're using Apache::Registry as the PerlHandler, you've got some issues to deal with that are very confusing and hard to explain. Look here to read about my() scoped variables in nested subroutines, which is essentially what file-scoped lexicals are under Apache::Registry. As Aighearach mentioned, it treats your script as if it were just another subroutine.

Real Globals are different. If you want file-scoped variables in your script, without the other traps, then you can use vars.

As for begin blocks, see here.

72656B636148206C72655020726568746F6E41207473754A

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-09-27 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (516 votes). Check out past polls.