From 74ea20793d8ab73ab93f16646b363c1920e48e15 Mon Sep 17 00:00:00 2001 From: Dustin Williams Date: Sun, 20 Mar 2016 20:02:02 -0700 Subject: Fixed instance where wrong variable name was used --- perl6.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl6.html.markdown b/perl6.html.markdown index 5082a433..b5a25a41 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -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 -- cgit v1.2.3