if ($_==1){# show name 'individual' for qty 1 else show number #### @quantities = ('1','5','10','25','50','100'); printf( '', $_, # option value is the quantity ($_ == $userRecord{$pack_qty}) ? ' selected' : '', ($_ == 1) ? 'Individual' : $_ ) for @quantities;