Skip to content

Commit c1579c3

Browse files
committed
temp declarator: better/correcter explanation
1 parent 943c380 commit c1579c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Language/variables.pod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,9 @@ sub buy-cookie { $cookies++ }
430430
431431
{
432432
my $cookies = 42;
433-
buy-cookie; # Refers to old $cookies
434-
say $cookies; # -> 6
433+
buy-cookie; # Increments the outer $cookies variable
434+
say $cookies; # 42
435+
# the outer $cookies variable is 6 now
435436
}
436437
437438
{

0 commit comments

Comments
 (0)