! "#" is not being recognized in AGI!

hi all,
THIS IS MY Asterisk::AGI code

$option=$AGI->get_data(‘asterisk/sounds/option’,10000,1);

while(! (($option eq 1) || ($option eq “#”) || ($option eq “*”)) ) {
$option=$AGI->get_data(‘asterisk/sounds/option’,10000,1);}

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

Thanks

Hi,

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.

HTH