Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: cgi script works until n+1 parameter

by roboticus (Chancellor)
on May 27, 2008 at 13:08 UTC ( [id://688661]=note: print w/replies, xml ) Need Help??


in reply to cgi script works until n+1 parameter

little albert

One problem with simplifying a bit of code to try to make the problem easier to find is that unless it's a working example, it's hard to tell if the problem actually exists in the code presented. In this case, I don't see anything that could cause that behavior. Sorry...

...roboticus

Replies are listed 'Best First'.
Re^2: cgi script works until n+1 parameter
by lepetitalbert (Abbot) on May 27, 2008 at 15:10 UTC

    Hi mwah and roboticus,

    I found that the script hangs after my 'DEBUG 1' !?!
    How can this happen ?

    Have a nice day

    "There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates
      lepetitalbert:

      Considering that the only code you show after the 'DEBUG 1' is a comment and closing brace, I'm going to have to guess that the problem lies elsewhere in your code.

      We can't diagnose what we can't see.

      ...roboticus

        Hia again roboticus,

        Yes I know, but the script ~3000 lines, with homemade modules, so it's no easy to make a small working example

        The question is general : a script is executed sequencely (right ?), how can my script hang after my print statement without printing my DEBUG ?

        I found where the script hangs, but don't know why.

        if ( $concerne1_param_name ne '' ) { $cnt++; $line++; $Sheet->Cells( $line , 4 )->{Value} = $concerne1_param_name; } if ( $concerne2_param_name ne '' ) { print h2( "DEBUG 2 : \$line -> $line : \$cnt -> $cnt " ); $line++; $cnt++; $Sheet->Cells( $line , 4 )->{Value} = $concerne2_param_name; }

        The script hangs in the second if block, even if the block is empty :

        if ( $concerne2_param_name ne '' ) { }

        the last ( browser ouput) is :

        DEBUG 0 DEBUG 1 : 119 DEBUG 2 : $line -> 26 : $cnt -> 3

        if I comment the block everything works again

        Any idea is welcome

        Have a nice day.

        "There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found