Lines Matching refs:array
431 If you pass an array from Java into a Perl method, it arrives in the
435 an array of integers.
439 # Get the array elements
443 # Sort the array numerically
462 Converts scalar to an array of booleans.
466 Converts scalar to an array of bytes.
470 Converts scalar to an array of characters.
474 Converts scalar to an array of short integers.
478 Converts scalar to an array of integers.
482 Converts scalar to an array of long integers.
486 Converts scalar to an array of floating point numbers.
490 Converts scalar to an array of double precision numbers.
494 Returns the length of the array.
499 // Show how to pass an array from Java to Perl.
505 # Get the array elements
509 # Sort the array numerically
517 // Create an array and ask Perl to tell us
563 // Perl method to sort an array of strings.
566 my @new_array; # an array to copy names[] to
568 # Fetch each element from the array.
578 # Add it to the array.
582 # Print the sorted, comma-delimited array.
587 // Create a String array and ask Perl to sort it for us.
603 To write a Perl method that returns an array, declare its return value
604 as an array type. Make sure you return a reference to the array, not a
609 # Return an array with seconds, minutes, hours
621 // Simple JPL demo to show how to send an array to Java
625 // Call the Perl method to get an array and print
633 // Perl method that returns an array reference.
640 # Return an array with seconds, minutes, hours
654 a Perl method as an array type and return a string (instead of an array
655 reference), JPL splits up the elements into an array.
658 an array of bytes so Java can make an Image out of it:
708 // Create the image with the byte array we got
798 If you pass a Java array into a Perl method, it comes in as a scalar
812 To return an array from a C<perl> method, declare the method as returning
813 an array type, and either:
817 Return an array reference.
854 argument is a reference to an array that contains a list of the argument
855 types. The final argument to C<getmeth> is a reference to an array