in reply to This turned out not to be the disaster I expected

It would call dump since that's the first command it would come across that would force an exit. Next up would be exec and exit.
  • Comment on Re: This turned out not to be the disaster I expected

Replies are listed 'Best First'.
Re^2: This turned out not to be the disaster I expected
by kyle (Abbot) on Jun 06, 2007 at 19:45 UTC

    Actually, it looks as if exec does not do the job. I get "foo" from:

    perl -le '$x="exec";eval $x;print "foo";'

    Not so for dump and exit.

Re^2: This turned out not to be the disaster I expected
by FunkyMonk (Chancellor) on Jun 06, 2007 at 19:50 UTC
    ... and takes a breather at
    getc

    No exit with exec though. perldoc exec only mentions

    exec LIST exec PROGRAM LIST