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/
Joost Diepenmaat [ Sa, 29 März 2008 23:45 ] [ ID #1931968 ]

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
Ben Morrow [ So, 30 März 2008 01:56 ] [ ID #1931976 ]
Perl » comp.lang.perl.misc » Re: BEGIN, INIT etc...

Vorheriges Thema: FAQ 7.26 How can I find out my current package?
Nächstes Thema: Perl-10: solaris; how to run configure with NO asks, but NOT /usr/local?