in reply to Re^4: CGI, STDIN and chomp problem: bug? (input)
in thread CGI, STDIN and chomp problem: bug?

So, you wanted to keep reading from STDIN for sake of easy checking with different inputs. In that case, it is smart to use the debugging capabilities of CGI.pm.
use CGI qw(:debug); chomp (my $choice = param('choice'));