Hi all,
In ksh, there is a "trap" command which can trap returning value from each shell scripts and invoke an error handling routine when return value != 0.
For Example :
trap `error_routine`.....
test1.sh
test2.sh
Is there anything serving the same function in Perl?
so that I don't need to write like the following :
test1.sh || die "error in test1.sh";
test2.sh || die "error in test2.sh";
thanks
In ksh, there is a "trap" command which can trap returning value from each shell scripts and invoke an error handling routine when return value != 0.
For Example :
trap `error_routine`.....
test1.sh
test2.sh
Is there anything serving the same function in Perl?
so that I don't need to write like the following :
test1.sh || die "error in test1.sh";
test2.sh || die "error in test2.sh";
thanks