in reply to Getting a row rather than an expected scrolling list

scrolling_list expects -values to be an arrayref:
print $q->scrolling_list(-name=>"metrics", -value=>\@data);

see CREATING A SCROLLING LIST for the details.