Not really a mac question, so firstly I'd suggest looking at perlmonks.org for a great and helpful site for perl questions.
In answer to this specific question, the function you're looking for is
popup_menu() if you type 'perldoc CGI' in Terminal session, you'll find some examples, and the options available, but in essence it goes something like:
popup_menu(-name=>'color',-values=>['red','green','blue','chartreuse'], 'red')