I am not sure how many times i have come across to a point where I had to use a perl script with python. And I realized that this could be a case for few of you guys too. thought why not put a post for this. here is a simple example of how to do it.
you could use sys.exit() to see if the execution was a success. This is the way i am using it. could solve problems at least for a few of you guys.