print "param=" . $q->param('report_type') . "
"; if( grep { /$q->param('report_type')/ } (qw/case_id hosp_alias sender receiver/) ) { print "we are getting the list
"; } else { print "we are NOT getting the list
"; }