in reply to param = 0, not NULL
my $choice = param('choice') || 1; [download]
my $choice = defined param('choice') ? param('choice') : 1; [download]