in reply to Search for array element

Two problems

Solution:

grep /^\Q$search\E\z/i, @arr

or

$search = lc($search); grep lc($_) eq $search, @arr;