Re: How to pass array from java to perl using inline java



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)




.



Relevant Pages

  • Re: Idiom for array index that Im foreaching over?
    ... >>you'll find that you rarely want to loop over an index. ... With hashes, indexed access, and hence loops ... > simplicity and elegance that I expect out of good modern Perl ... If, for some reason, the data is given in individual arrays, there are ...
    (comp.lang.perl.misc)
  • Re: Fw: question
    ... As a matter of fact Perl has: ... With the above functions and arrays and hashes there are very few data ... Also, PHP is a very different language then Perl, remember that. ... What happens if I add or remove keys from a hash while iterating over it? ...
    (perl.beginners)
  • Re: delimited data into nested array
    ... > Perl as a two dimensional nested array. ... Do you have a good reason for reading the file into an array ... If you'd still like to use the arrays, read up on perllol and use this: ... This whole loop was condensed above by using join, $\, and that handy ...
    (comp.lang.perl.misc)
  • Re: SET Operations in Perl
    ... Those are good if you have sets in arrays. ... But if you have to store sets in Perl then arrays are not the natural type. ... Some what one usually thinks of as the primative set operations are not ... primative in this implementation but the primatives you do have are ...
    (comp.lang.perl.misc)
  • Re: Bash: lokale Variablen in Prozeduren
    ... Loadbalancer abfragen muss, dort die gerade in den Disconnect gehenden Verbindungen herausfischen und einen CPU-Monitor auf die gerade benutzte VM legen müsste. ... die Arrays kann und strukturierte Type/Field/Records in Arrays stecken kann. ... Ich hab das mal in Java angedacht - in Java bekomm ich aber schon wieder den Zirkus mit dem Aussprung in Linux-Prozeduren. ... Wie schaut es mit Arrays und Strukturen in Perl aus? ...
    (de.comp.os.unix.shell)