Cory Spencer (via RT) wrote: > # New Ticket Created by Cory Spencer > # Please include the string: [perl #61544] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61544 > > > > > When declaring one or more array variables in list syntax: > > my (@a, @b); > > they are not properly initialized and are left as Undef objects. > Subsequence array operations on the variable results in an error: > > @a.push(2); > > Method 'push' not found for invocant of class 'Undef' > current instr.: '_block14' pc 85 (EVAL_15:47) > called from Sub '!UNIT_START' pc 15711 (src/builtins/guts.pir:327) > called from Sub 'parrot;PCT;HLLCompiler;eval' pc 892 > (src/PCT/HLLCompiler.pir:508)
Added tests to t/spec/S04-declarations/my.t in (pugs) r24516. Moritz
