Angerstein wrote: > > I have a programm build with a lot of subs. > > Normally it should be possible to call every declared sub in the (fork) > child process, right?
$ perl -e' sub one { print " one" } sub two { print " two" } die "fork error\n" unless defined( $pid = fork ); if ( $pid ) { sleep 1; print "Parent:"; one(); two(); print "\n" } else { print "Child:"; one(); two(); print "\n" } ' Child: one two Parent: one two It seems to work here (on Linux) :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]