in reply to How to return value of a variable from shell script to perl script
Echo it and capture the script's STDOUT.
my $output = `sh diff1.sh`; [download]
See qx// in perlops