Re: How to pass array from java to perl using inline java
- From: "Andy" <anedza@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 31 Jan 2007 11:45:24 -0800
According to the output you've posted, you've succeeded. Perl is
reporting you have an array of pointers to other arrays of numbers.
The question now is how to read the contents of the arrays that were
returned from java.
All languages do not store their numbers in the same way, so the way a
floating point number is stored in Java may not be compatible with the
way Perl stores it. The IEEE defines a standard format for
representing floating point numbers in memory.
If both Perl and Java are IEEE compliant for floating point numbers,
you should have little translation problems between the two languages
(in that if you experiment with the different ways of using arrays in
Perl, one of them should automatically work with what Java returned).
Sorry, I don't know if Perl is IEEE compliant, although I know Java
is.
Inline::Java::Array=ARRAY(0xa52e234)
.
- References:
- How to pass array from java to perl using inline java
- From: songtao32@xxxxxxxxx
- Re: How to pass array from java to perl using inline java
- From: DJ Stunks
- Re: How to pass array from java to perl using inline java
- From: songtao32@xxxxxxxxx
- How to pass array from java to perl using inline java
- Prev by Date: Re: How to start some file as Perl script argument?
- Next by Date: Re: How to pass array from java to perl using inline java
- Previous by thread: Re: How to pass array from java to perl using inline java
- Next by thread: Re: How to pass array from java to perl using inline java
- Index(es):
Relevant Pages
|
|