Help for this page
01-Capture the user choice in a variable. 02-Check if it is in the populated array.
use strict; use warnings; ... print $element eq lc($default_choice)? "$default_choice index +\$items[$x]\n" : next; } }