in reply to Passing values between shell and Perl scripts

@ARGV is your ticket. As for returning results to the script, you can either capture the Perl script's STDOUT or use exit to signal success/failure.

Makeshifts last the longest.