I have perl scripts A and B, where script B is called by script A. When I run script A, which will then initiate script B, I want to be able to press CTRL-C and have it terminate script B only, with script A continuing to run from after it called B.
I tried using $SIG{'INT'} handlers but both scripts always get terminated together. Is the above situation possible? How can it be accomplished?