mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-10 16:54:33 +02:00
Merge pull request #2204 from williadc/master
[perl6/en] Fixed instance where wrong variable name was used
This commit is contained in:
@@ -824,7 +824,7 @@ say why-not[^5]; #=> 5 15 25 35 45
|
||||
# (they exist in other langages such as C as `static`)
|
||||
sub fixed-rand {
|
||||
state $val = rand;
|
||||
say $rand;
|
||||
say $val;
|
||||
}
|
||||
fixed-rand for ^10; # will print the same number 10 times
|
||||
|
||||
|
Reference in New Issue
Block a user