http://www.perlmonks.org?node_id=811941


in reply to Passing values from Perl script to shell script

You don't put any values in $var1 or $var2, so it's not surprising that the shell script receives none.