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..
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