! "#" is not being recognized in AGI!

hi all,
THIS IS MY Asterisk::AGI code


while(! (($option eq 1) || ($option eq “#”) || ($option eq “*”)) ) {

The get_data command require the user input … the user can input either of ‘’, ‘#’ or 1 … but when user presses ‘#’, the loop continues prompting until a '’ or 1 is pressed … can any one tell me whats the catch ???



I know that if you using the READ application to store input from the user, it terminates the user input with a #, so any hash will just terminate the input.