Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://755628]
[1nickt]: ping from pm-cb-g
[choroba]: pong from the same
[choroba]: One of my favourites

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-10-18 12:31 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.