you can execute a perl script within your java code. Try something like this
Process pr = Runtime.getRuntime().exec(perl cmd);
// Print command output onto standard output
InputStream is = pr.getOutputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String str;
System.out.println("starting...");
while ((str = br.readLine()) != null) {
System.out.println(str);