Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Variable scoping and mod_pel/Apache::ASP

by perrin (Chancellor)
on Nov 02, 2001 at 01:38 UTC ( [id://122685]=note: print w/replies, xml ) Need Help??


in reply to Variable scoping and mod_pel/Apache::ASP

You're creating closures. %SENTDATA is a lexical (my) variable, and check_login_input() will keep a private copy of the first version it sees in there. It works some of the time because you have multiple Apache processes going here and some of them saw it with data the first time while others saw it empty.

To fix this, either make %SENTDATA a global (use vars) or pass it to your subroutines (by reference).

  • Comment on Re: Variable scoping and mod_pel/Apache::ASP

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found