in reply to Basic mod-perl question : why my variable is undefined ?

Your reported output lgeX <<>> does not match any of the I/O lines in your provided code. Are you perhaps confusing the $lig variable with something else?

Why is $lig a variable if you never change its value? Why not declare it as a constant instead? If its value does change (from 4) why have you not shown that code?

Update note: The OP has now removed the reference in the parent node to "lgeX" in the output.

Replies are listed 'Best First'.
Re^2: Basic mod-perl question : why my variable is undefined ?
by pcouderc (Monk) on Jul 23, 2014 at 12:32 UTC
    Thank you. Well, there is no mistake. You see lgeX<<>> because $lig is not correct and seems to be undef. I have simplified the code. In fact $lig is incremented in xxxx().

      Perhaps I have not been clear enough. The string "lgeX" appears in your reported output but does not appear anywhere in your provided code. Can you explain that, please?

        You were very clear, it was my mistake. I correct now.