JPerl is a package that allows you to run PERL code in Java. This package is made available free with the intent that it will be usefull to the Java community. There is no warranty or support. The source code is included in the package, so feel free to make whatever changes you need!


   jp perl = new jp("");

   // Call a function and print scalar result
   String t = perl.PLCallScalar("TestFuncCA");
   System.out.println("Func TestFuncCA returned........."+t);

   // Call a perl function, pass arguments, print return array
   String[] in = new String[] {"1","2"};
   String t2[] = perl.PLCallArray("TestFuncAS",in);
   for(int i=0;i<t2.length;i++)

   // Pass a java object to perl
   Hashtable h = new Hashtable();
   perl.PLCallHash("TestFuncHash",new Object[] {h} );

see in the download bundle for more details.