PLJava 0.04
Sponsored Links
PLJava 0.04 Ranking & Summary
File size:
0.16 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
876
Date added:
2007-06-06
Publisher:
Graciliano M. P.
PLJava 0.04 description
PLJava is Perl module that will embed Perl into Java.
USAGE
import perl5.Perl ;
import perl5.SV ;
public class test {
public static void main(String argv[]) {
Perl.eval("print qq`Hello World!n` ;") ;
///////////////////
SV foo = Perl.NEW("foo") ; // $foo = new foo() ;
foo.call("subtest") ; // $foo->subtest() ;
///////////////////
String s = Perl.eval(" time: + time() ") ;
int i = Perl.eval_int(" 2**10 ") ; // 1024
int n = Perl.eval_int(" 10/3 ") ; // 3
int d = Perl.eval_double(" 10/3 ") ; // 3.33333333333333
///////////////////
SV array = Perl.eval_sv(" [ a , b , c ] ") ;
String e0 = array.elem(0) ; // a
String e1 = array.elem(1) ; // b
String e2 = array.elem(2) ; // c
///////////////////
SV hash = Perl.eval_sv(" { a => 11 , b => 22 , c => 33 } ") ;
String k_a = hash.key("a") ; // 11
String k_b = hash.key("b") ; // 22
String k_c = hash.key("c") ; // 33
}
}
USAGE
import perl5.Perl ;
import perl5.SV ;
public class test {
public static void main(String argv[]) {
Perl.eval("print qq`Hello World!n` ;") ;
///////////////////
SV foo = Perl.NEW("foo") ; // $foo = new foo() ;
foo.call("subtest") ; // $foo->subtest() ;
///////////////////
String s = Perl.eval(" time: + time() ") ;
int i = Perl.eval_int(" 2**10 ") ; // 1024
int n = Perl.eval_int(" 10/3 ") ; // 3
int d = Perl.eval_double(" 10/3 ") ; // 3.33333333333333
///////////////////
SV array = Perl.eval_sv(" [ a , b , c ] ") ;
String e0 = array.elem(0) ; // a
String e1 = array.elem(1) ; // b
String e2 = array.elem(2) ; // c
///////////////////
SV hash = Perl.eval_sv(" { a => 11 , b => 22 , c => 33 } ") ;
String k_a = hash.key("a") ; // 11
String k_b = hash.key("b") ; // 22
String k_c = hash.key("c") ; // 33
}
}
PLJava 0.04 Screenshot
PLJava 0.04 Keywords
PLJava
PLJava 0.04
SV
Java
Perl module
string
Perl
Perl.eval
int
c
b
PLJava 0.04
Libraries
Programming
Bookmark PLJava 0.04
PLJava 0.04 Copyright
WareSeeker periodically updates pricing and software information of PLJava 0.04 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of PLJava 0.04 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Parse::Java is a Perl module that acts like a parser for Java code. Free Download
Perl6::Take is a Perl module to gather/take in Perl 5. Free Download
Java::Import is Perl module to use Java classes in Perl. Free Download
COPE is a CORBA implemented in Perl. Free Download
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space. Free Download
libplis is library for Perl-like string manipulation for C++. Free Download
B::Flags is a Perl module that provides a friendlier flags for B. Free Download
Games::Blackjack is a Perl module with Blackjack Utility Classes. Free Download
Latest Software
Popular Software
Favourite Software