in reply to Re (tilly) 1: Problem calling one script from another
in thread Problem calling one script from another

Unfortunately, system() and backticks don't set $!. They do set $?, however, with the exit status << 8 or'ed with the signal that terminated the subprocess, if any. Here's an example from system on checking the value of $?:
You can check all the failure possibilities by inspecting $? like this: $exit_value = $? >> 8; $signal_num = $? & 127; $dumped_core = $? & 128;

Replies are listed 'Best First'.
Re (tilly) 3: Problem calling one script from another
by tilly (Archbishop) on Dec 11, 2000 at 10:31 UTC
    Oops.

    That is why I test code before I put it into production.

    (As you can see I really do take my advice about modules. And I don't often use system. But I should have known better on that one. Well I did but forgot.)