im trying to build an editor using java. how can i bind an interpreter like perl. so i can run or output the result in a gui??