Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Re: CGI or Apache Problem?

by BigJoe (Curate)
on Jan 19, 2002 at 08:25 UTC ( #140042=note: print w/replies, xml ) Need Help??

in reply to Re: CGI or Apache Problem?
in thread CGI or Apache Problem?

Yes I am running mod_perl. Do you know if there is something I can set to not allow this?


Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Replies are listed 'Best First'.
Re: Re: Re: CGI or Apache Problem?
by perrin (Chancellor) on Jan 19, 2002 at 09:20 UTC
    You can use Apache::PerlRun, which clears globals for you, or you can fix the problem in your script.

    I see at least one possible cause of the problem. Your sub HANDLE_PRODUCTS() is referring to the variable $email_body, which is a lexical declared outside the subroutine. That creates a closure, and this sub keeps a private copy of that variable from then on. The best way to fix this is to pass a reference to $email_body into the subroutine instead.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://140042]
[Discipulus]: in this case Corion we are speaking about software licensing: evry year or two we must rescan the whole ced to produce an excel report, while at every activation / disactivation we update a black box DB: i said that i a week i can produce the perl to..
[Discipulus]: rend out the xls IF i have access to the DB
[choroba]: LanX I miss working in a bank sometimes...
[Corion]: Discipulus: Ooof. Especially yearly things are things I like to automate instead of trying to remember how I did things last year...
[Corion]: And the second rule that I've learned is, that there is no one-off job, so writing a program for it pays off almost immediately. The third rule is to give all my programs numbers and have them reproduce that number in the name of their output files. :)
[Discipulus]: the true part is that also specification change between years.. but well our job is cheap but dont abuse of us.. ;=)
[LanX]: Choroba: do you miss chaos with ties? apply at the US government.. ;)
[ambrus]: Corion: those are good rules.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2017-03-29 12:10 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (350 votes). Check out past polls.