in reply to Re^2: join email lists with comma unless one list is empty
in thread join email lists with comma unless one list is empty

This is the most perlish you can get :P
sub join_email_lists { join ",", grep length, @_ }