in reply to perl callable from bash?
Wouldn't hurt if you added the following line to your sh script and gave us the output.
echo "[$firname]" [download]