You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Igor Rojdestvenski <ig...@plantphys.umu.se> on 2003/05/29 10:40:41 UTC
Handler called second time acts up.
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 new one 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,
Sweden
e-mail: igor.rojdestvenski@plantphys.umu.se
phone: +46-73-6205020
fax: +46-90-7866676
homepage: www.patronov.net
Re: Handler called second time acts up.
Posted by Stas Bekman <st...@stason.org>.
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 Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Handler called second time acts up.
Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
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.