Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: two copies of my application launched under CGI

by rpnoble419 (Pilgrim)
on Apr 06, 2009 at 03:03 UTC ( #755628=note: print w/ replies, xml ) Need Help??


in reply to Re: two copies of my application launched under CGI
in thread two copies of my application launched under CGI

I fall on my sword for this. It turns out to be a double call to the application from the HTML code. The HTML file has a textarea that gets data from a scanner via the keyboard buffer. This input is checked via a javascript function called by the onkeyup event. This function is being called twice and the zombie is the result of the second call overriding the first.

Thanks to Bilfurd for your reply. And I'm strict on use Strict.


Comment on Re^2: two copies of my application launched under CGI
Re^3: two copies of my application launched under CGI
by almut (Canon) on Apr 06, 2009 at 08:05 UTC
    And I'm strict on use Strict.

    Strictly speaking, it's use strict :) — module names are generally case-sensitive (even on Windows).

    > perl -e "use strict; $foo=1" Global symbol "$foo" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. > > perl -e "use Strict; $foo=1" >

    Reason is that - if you use Strict - the use will implicitly attempt to call Strict->import, which isn't found, as the respective namespace is declared with package strict; in the module's source (this must 'fail' silently, as a module is not obliged to supply an import method).  Thus, any code in an existing import() isn't executed, which in turn renders some modules (and in particular pragmata) non-functional, or makes them behave differently...

    Update: just in case...  for whoever downvoted without saying what's wrong (: this of course only applies to Windows, where the respective file is found at all, due to the filesystem being case-insensitive.  Geez...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2014-07-10 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls