# New Ticket Created by Tyler Curtis # Please include the string: [perl #76544] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76544 >
At parrot r48099, with Rakudo version Kiev-272-gdd8d5d7, "state" variables are not implemented. Rakudo as of the January 2010 release("Minneapolis") implemented state variables. This code under Minneapolis works: use v6; sub count () { state $c = 0; ++$c; } say count; say count; and produces the output: 1 2 However, Rakudo version Kiev-272-gdd8d5d7 produces the following error message: ===SORRY!=== Symbol '$c' not predeclared in count (rakudo-alpha/foo.p6:4) The same error message is produced with only "state $c = 5;" or "state $c". -- Tyler Curtis