Re: BEGIN, INIT etc...
Ben Morrow <ben [at] morrow.me.uk> writes:
> I am confused. How is one (on a fork/exec-based system, or perl's
> emulation of such under Win32) supposed to avoid calling exec when
> necessary?
By using fork(), ofcourse! Am I missing something?
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Re: BEGIN, INIT etc...
Quoth Joost Diepenmaat <joost [at] zeekat.nl>:
> Ben Morrow <ben [at] morrow.me.uk> writes:
>
> > I am confused. How is one (on a fork/exec-based system, or perl's
> > emulation of such under Win32) supposed to avoid calling exec when
> > necessary?
>
> By using fork(), ofcourse! Am I missing something?
Err... yes? fork creates a clone of the current process, exec changes
which file the current process is executing. Any method of executing an
external program, on Unix, ends up calling exec.
Ben