2013-04-10 22:43:41 -07:00
|
|
|
use NativeCall;
|
2016-12-05 22:15:40 +01:00
|
|
|
sub fork() returns int32 is native { ... }
|
2013-04-10 22:43:41 -07:00
|
|
|
|
|
|
|
|
if fork() -> $pid {
|
|
|
|
|
print "I am the proud parent of $pid.\n";
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
print "I am a child. Have you seen my mommy?\n";
|
|
|
|
|
}
|