foreach (@names) { next if ( lc($_) eq lc('buckaduck') ); ... }