Hi,
I have a few perl scripts, that are dependent on each other. When I run one script and it encounters an error I want it to call a sub routine that prints an error message then exits the script. But it must also tell the script that is running the program that it has failed, so that program can enter a sub to deal with the error and also exit. My problem is killing a script from a sub routine and also telling the program that called the script its has failed. Can anyone point me in the direction of a nice simple example?
Many Thanks,
Rob
I have a few perl scripts, that are dependent on each other. When I run one script and it encounters an error I want it to call a sub routine that prints an error message then exits the script. But it must also tell the script that is running the program that it has failed, so that program can enter a sub to deal with the error and also exit. My problem is killing a script from a sub routine and also telling the program that called the script its has failed. Can anyone point me in the direction of a nice simple example?
Many Thanks,
Rob