source:
trunk/essentials/dev-lang/perl/jpl/PerlInterpreter/PerlInterpreter.java@
3184
| Last change on this file since 3184 was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 383 bytes | |
| Line | |
|---|---|
| 1 | class PerlInterpreter { |
| 2 | static boolean initted = false; |
| 3 | |
| 4 | public native void init(String s); |
| 5 | public native void eval(String s); |
| 6 | |
| 7 | // public native long op(long i); |
| 8 | |
| 9 | public PerlInterpreter fetch () { |
| 10 | if (!initted) { |
| 11 | init("$JPL::DEBUG = $ENV{JPLDEBUG}"); |
| 12 | initted = true; |
| 13 | } |
| 14 | return this; |
| 15 | } |
| 16 | |
| 17 | static { |
| 18 | System.loadLibrary("PerlInterpreter"); |
| 19 | } |
| 20 | } |
| 21 |
Note:
See TracBrowser
for help on using the repository browser.
