On Sun, 28 May 2017 11:56:51 -0700, comdog wrote:
> It looks like %() with no characters between the parens creates a
> Map, but if there's at least one character between the parens, it
> creates a Hash. I figure all of these should create a Hash:
> 
> my %hash = %();
> put '1: ', %hash.^name;          # 1: Hash
> 
> my $hash-empty = %();
> put '2: ', $hash-empty.^name;    # 2: Map
> 
> my $hash-space = %( );
> put '3: ', $hash-space.^name;    # 3: Hash
> 
> Where is %() documented (other than examples using it)?
> 
> $ perl6 -v
> This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-
> g66c6dda
> implementing Perl 6.c.


Failing to reproduce this on any of the versions, including the one mentioned 
in OP.

Is this being run in REPL? Do you have some modules loaded? (if in REPL, do you 
have Readline or Linenoise installed?)

Reply via email to