File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -703,15 +703,14 @@ except that C<temp> does not reset the value).
703
703
704
704
sub prefix:<let>(Mu $a is rw)
705
705
706
- Like the L < C < temp > |#prefix_tmp> prefix, but only restores the
707
- value if the block exits unsuccessfully. A successful exit means the
708
- block returned a defined value or a list.
706
+ Restores the previous value if the block exits unsuccessfully. A
707
+ successful exit means the block returned a defined value or a list.
709
708
710
709
my $answer = 42;
711
710
712
711
{
713
712
let $answer = 84;
714
- die if Bool.pick;
713
+ die if not Bool.pick;
715
714
CATCH {
716
715
default { say "it's been reset :(" }
717
716
}
Original file line number Diff line number Diff line change @@ -647,15 +647,14 @@ say $cookies; # -> 6
647
647
648
648
= head2 The C < let > Prefix
649
649
650
- Like the L < C < temp > |#The_temp_Prefix> prefix, but only restores the
651
- value if the block exits unsuccessfully. A successful exit means the
652
- block returned a defined value or a list.
650
+ Restores the previous value if the block exits unsuccessfully. A
651
+ successful exit means the block returned a defined value or a list.
653
652
654
653
my $answer = 42;
655
654
656
655
{
657
656
let $answer = 84;
658
- die if Bool.pick;
657
+ die if not Bool.pick;
659
658
CATCH {
660
659
default { say "it's been reset :(" }
661
660
}
You can’t perform that action at this time.
0 commit comments