in reply to Re^2: Problems with sending value to system command
in thread Problems with sending value to system command

You can't combine system() and the backtick operator. Try
my $outputValueFromFindArcsScript = `/proj/dance.pl '$returnvalue'` if + (length($function) > 0);