in reply to Re: Eval and system()
in thread Eval and system()

Sorry about that! I meant:
eval { system("fake_command") }; print $@;
which still doesn't print $@, I guess because of it being caught in the compile phase. Thanks . . . Kevin

Replies are listed 'Best First'.
Re: Re: Re: Eval and system()
by busunsl (Vicar) on Sep 05, 2001 at 17:20 UTC
    It doesn't mean an error in eval when the command in system() fails.

    To check for that you can probably use:

    eval { system("false") and die "command 'false' went wrong!"}; print $@, "\n"