On Fri, May 29, 2009 at 10:04:39AM -0700, Larry Wall wrote:
> On Fri, May 29, 2009 at 09:50:36AM -0700, yary wrote:
> : Show that much of the basics still work:
> : > my @x=('a' .. 'z'); @x[3,4]=qw(DeeDee Ramone);
> :   say @x.splice(2,4).join(',')
> : c,DeeDee,Ramone,f
> 
> That qw is not a good example of what still works, since it is supposed
> to be interpreted as a qw subroutine (rakudo bug).  I recommend square
> brackets instead.

And Rakudo now correctly treats qw() like a function instead of
a quote:

  $ ./perl6
  > say qw(DeeDee Ramone);
  Could not find non-existent sub Ramone
  > say qw (DeeDee Ramone);
  DeeDeeRamone
  > say qw[DeeDee Ramone];
  DeeDeeRamone
  > 

Thanks Larry!

Pm

Reply via email to