use strict; use warnings; our $test_text = "Die ist ein Text"; my $chd = fork(); if ($chd == 0) { print "$test_text\n"; } else { $test_text = 'blablablubb'; wait(); }