Thanks a lot!
But how do I force it to exit with the status string?
What I mean is that if the executing of perl pgm fails for some reason, I want it to be forced to exit the script. Else, if it is success, then ftp a file.
exit $ret OR return $? doesn't work