in reply to multiple infinitive loops

Here's an script based on the fork example in the Camel book:
#!/usr/bin/perl -w use strict; sub one { while(1) { print "in sub one\n"; sleep 1; } } sub two { while(1) { print "in sub two\n"; sleep 1; } } my $pid; if( $pid = fork ) { one(); } elsif ( defined $pid ) { two(); }

Plankton: 1% Evil, 99% Hot Gas.