10. my $c = Fiber>new(
$c‐>resume;
sub{
say 'hello!';
Fiber‐>yield;
say 'happy';
$c‐>resume;
say 'perl';
Fiber‐>yield;
say 'coding';
$c‐>resume;
say 'world!';
}
);
11. my $c = Fiber>new(
$c‐>resume;
sub{
say 'hello!';
Fiber‐>yield;
say 'happy'; hello
happy
$c‐>resume;
say 'perl';
perl
coding Fiber‐>yield;
say 'coding'; world
$c‐>resume;
say 'world!';
}
);
12. my $c = Fiber>new(
$c‐>resume;
sub{
say 'hello!';
Fiber‐>yield;
say 'happy';
$c‐>resume;
say 'perl';
Fiber‐>yield;
say 'coding';
$c‐>resume;
say 'world!';
}
);
36. my $c = Fiber>new(
$c‐>resume;
sub{
say 'hello!';
Fiber‐>yield;
say 'happy';
$c‐>resume;
say 'perl';
Fiber‐>yield;
say 'coding';
$c‐>resume;
say 'world!';
}
);