use parser; $a_typ = 'text'; $b_typ = 'link'; ... @out = parser::parse_select($select_req[0]); ...