in reply to Redirecting stdout with threads
my $pid = fork(); if ($pid == 0) { print "Hello!\n"; } else { execute(); }
Another possibility is to modify your "can't modify" routine to use backticks in place of system and print the output yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Redirecting stdout with threads
by michi (Novice) on Mar 15, 2009 at 14:54 UTC | |
by kennethk (Abbot) on Mar 15, 2009 at 15:37 UTC |