in reply to Call one Perl Script from another

The return code is available in the 16-bit $? variable. For example:

system('perl -e "exit 42"'); my $rc = $? >> 8; print "return code=$rc\n";
For more details, see system et al, as suggested by davorg.