Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: cgi script works until n+1 parameter

by lepetitalbert (Monsignor)
on May 28, 2008 at 14:37 UTC ( #688868=note: print w/ replies, xml ) Need Help??


in reply to Re^3: cgi script works until n+1 parameter
in thread cgi script works until n+1 parameter

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


Comment on Re^4: cgi script works until n+1 parameter
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-05 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls