Inline::Java::PerlInterpreter

Inline::Java::PerlInterpreter is a Perl module used to call Perl directly from Java using Inline::Java.
Download

Inline::Java::PerlInterpreter Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Patrick LeBoutillier
  • Publisher web site:
  • http://search.cpan.org/~patl/File-FDkeeper-0.06/FDkeeper.pod

Inline::Java::PerlInterpreter Tags


Inline::Java::PerlInterpreter Description

Inline::Java::PerlInterpreter is a Perl module used to call Perl directly from Java using Inline::Java. Inline::Java::PerlInterpreter is a Perl module used to call Perl directly from Java using Inline::Java.SYNOPSIS import org.perl.inline.java.* ; class HelpMePerl { static private InlineJavaPerlInterpreter pi = null ; public HelpMePerl() throws InlineJavaException { } static private boolean matches(String target, String pattern) throws InlineJavaPerlException, InlineJavaException { Boolean b = (Boolean)pi.eval("'" + target + "' =~ /" + pattern + "/", Boolean.class) ; return b.booleanValue() ; } public static void main(String args[]) throws InlineJavaPerlException, InlineJavaException { pi = InlineJavaPerlInterpreter.create() ; String target = "aaabbbccc" ; String pattern = "ab+" ; boolean ret = matches(target, pattern) ; System.out.println( target + (ret ? " matches " : " doesn't match ") + pattern) ; pi.destroy() ; } }WARNING: Inline::Java::PerlInterpreter is still experimental.The org.perl.inline.java.InlineJavaPerlInterpreter Java class allows you to load a Perl interpreter directly from Java. You can then perform regular callbacks to call into Perl.Requirements:· Perl Requirements: · Perl


Inline::Java::PerlInterpreter Related Software