use strict; use warnings; use diagnostics; # you got this array from your Database... my @foo=qw(red blue green purple grey pink black); print "";