Re: BEGIN, INIT etc...
am 29.03.2008 23:45:22 von Joost Diepenmaat
Ben Morrow 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...
am 30.03.2008 01:56:56 von Ben Morrow
Quoth Joost Diepenmaat :
> Ben Morrow 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