in reply to CGI won't pass to split

You're using the Switch.pm module. Remove it. It introduces errors into your programs that are hard to track down. It provides little gain for lots and lots of pain. Also, I think your syntax for the case statements is wrong, but again, just use if ... elsif ... else instead. It makes life easier for everybody.

Replies are listed 'Best First'.
Re^2: CGI won't pass to split
by shahriyar85 (Initiate) on Jan 19, 2009 at 14:20 UTC
    Thank you I tried and removed the switch from the code but the problem still ... the result is always 0.. unless I provide a direct value for the variable..

      Do you want to show us the code? Otherwise, I guess that the problem is on line 42.

        Please let me explain more... the the script is to get two strings and to put them in split for loop to get a new integer value. I tested the code before adding the cgi form and everything is ok.. but after adding the cgi the result is always 0 .. Perl returned uninitialized variable for the variable in split. thank you