- or download this
my $pid = fork;
die "can't fork: $!" if ! defined $pid;
...
else {
# child
}
- or download this
use 5.010;
my $pid = fork // die "Can't fork: $!";
if ...
- or download this
use 5.010;
...
my $child_pid = $_;
}
}
- or download this
use 5.010;
...
return qw( list context );
}
}
- or download this
return wantarray ? qw( list context ) :
defined wantarray ? 'scalar context';
- or download this
return tfu( wantarray,
true => sub { 'true' },
...
defined $value ? $todo_for{ false }->() :
$todo_for{ undef }->();
}