in reply to Life, in Perl.

Hmm, shouldn't that be enclosed in some sort of loop so that when it forks the process starts over? Of course if the code worked and you actually ran it then you'd have a fork bomb :-) Also, according to the CDC, the Life Expectancy of a male is 74.1 and a female is 79.5 (in America anyway) so perhaps the last part of the script should reflect that.

I know it's just for fun, but I couldn't resist! :-)

Replies are listed 'Best First'.
Re: Re: Life, in Perl.
by erasei (Pilgrim) on Jul 21, 2003 at 19:45 UTC
    The loop was left out on purpose because that's the way the human race works. There is never a stop to the forking of children. (ok, that just sounds wrong). A child is born (created), grows, and produces children of its own, and so on and so forth until a big friggin comet smashes into the earth (a kill -9, as it were).

    The death age.. uhm.. I'm just being optimistic :)