in reply to calling perl function from HTML

Based on your question, it sounds like you are hoping to ONLY populate a combo box based on a selection. It doesn't work like that. What you need to do is SUBMIT your form to the Perl script which will then re-write the HTML with the 'other' combo box populated.

You can do this with an onchange event or, if javascript is disabled, provide a submit button.