Re: (Rakudo 2014.04) 'item %h' working differently between REPL and interpreter?

2014-05-07 Thread Philip Hazelden
Thanks! I guess I'm kind of lucky for this bug, otherwise I might have taken a lot longer to figure out what to do. :) On Wed, May 7, 2014 at 4:44 AM, Larry Wall la...@wall.org wrote: On Sun, May 04, 2014 at 10:40:16AM +0100, Philip Hazelden wrote: : Hi, : : I'm trying to create a

Re: (Rakudo 2014.04) 'item %h' working differently between REPL and interpreter?

2014-05-06 Thread Larry Wall
On Sun, May 04, 2014 at 10:40:16AM +0100, Philip Hazelden wrote: : Hi, : : I'm trying to create a one-element array containing a hash. I eventually : managed to do this from the REPL, but when I create a script containing the : same commands, it doesn't work. : : $ cat test.p6 : my %h =

(Rakudo 2014.04) 'item %h' working differently between REPL and interpreter?

2014-05-04 Thread Philip Hazelden
Hi, I'm trying to create a one-element array containing a hash. I eventually managed to do this from the REPL, but when I create a script containing the same commands, it doesn't work. $ cat test.p6 my %h = (y = 1, x = 1); say [item %h].elems; say [item %h][0].WHAT; $ perl6