You can call an executable installed on your system by using `script path`, and you can pass it a value by doing `script path arguments`. The script (if it's Perl) can then access these arguments the regular way, through @ARGV, and print a result, and you should be able to access the result if you did $var = `script path arguments`. I'll go test this now and see if my memory works properly :)
in reply to need help to passing argument to executable and get return the result
my $arguments = 'beep';
my $var = `perl process.pl $arguments`;
If I do perl print.pl, I get the result BEEP, which means it's passing back and forth properly.
my $var = shift @ARGV;
$var = uc($var);