* Two algorithms: either - traversing an array or - duplicating its content in a hash (“associative array” that is?) for a fast lookup; * Using ‘grep’ or ‘eq’; * Assuming that arrays look like qw /I am an array, yeah…/.