Re: Handler called second time acts up.

2003-05-30 Thread Stas Bekman
Ged Haywood wrote:
Hi there,

On Thu, 29 May 2003, Igor Rojdestvenski wrote:


designed a mod_perl handler moduel [snip]
works fine first time, but when I refresh it, it works differently. [snip]
My theory is that something is wrong with local/global variables [snip]


Check out the mod_perl Guide - you can find it on the mod_perl website,

http://perl.apache.org

The guide contains a wealth of information about this kind of thing.
See in particular the sections about mod_perl traps, debugging, and
Sometimes it works, sometimes it doesn't...
Just to save you the time searching, here is the link to what Ged has mentioned:
http://perl.apache.org/docs/1.0/guide/porting.html#Sometimes_it_Works__Sometimes_it_Doesn_t
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Handler called second time acts up.

2003-05-29 Thread Igor Rojdestvenski



Hi all, 

I have the following problem. I designed a mod_perl 
handler module that parses a certain XML-like language into Virtual Reality 
Modeling Language (VRML) and sends it to the browser. It works fine first time, 
but when I refresh it, it works differently. It feels like the module does not 
create a new VRML on refresh but adds a newone to the previous, the result 
being crooked and twisted.
Similar thing happens when I activate url in 
VRML file, calling handler again from 
inside the roduced VRML. Hope you understand what I mean. My theory is that 
something is wrong with local/global variables in the module. Any 
hints?

Dr. Igor Rojdestvenski,Dept. Plant Physiology, 
Umea university, Umea 90187, Swedene-mail: [EMAIL PROTECTED]phone: 
+46-73-6205020fax: +46-90-7866676homepage: www.patronov.net


Re: Handler called second time acts up.

2003-05-29 Thread Ged Haywood
Hi there,

On Thu, 29 May 2003, Igor Rojdestvenski wrote:

 designed a mod_perl handler moduel [snip]
 works fine first time, but when I refresh it, it works differently. [snip]
 My theory is that something is wrong with local/global variables [snip]

Check out the mod_perl Guide - you can find it on the mod_perl website,

http://perl.apache.org

The guide contains a wealth of information about this kind of thing.
See in particular the sections about mod_perl traps, debugging, and
Sometimes it works, sometimes it doesn't...

73,
Ged.