in reply to Package required to execute perl script

Hi! I've used the Sample class on http://vishnuagrawal.blogspot.com/2008/08/execute-perl-script-from-java-program.html and replaced the command string in
process = Runtime.getRuntime().exec("perl test.perl");
by an array of strings:
String [] perlCommand = {"perl","test.perl","1","2","3"}; process = Runtime.getRuntime().exec(perlCommand);
My perl test script looks like this:
#!/usr/local/bin/perl use strict; use warnings; use Data::Dumper; print Dumper @ARGV;
Best wishes.