in reply to param = 0, not NULL

my $choice = param('choice') || 1;
could be written as
my $choice = defined param('choice') ? param('choice') : 1;