what is the behavior of the x operator (string replication) with negative values

2007-05-25 Thread Chas Owens
In my mind perl -le 'print join \n, map { [ . 0 x $_ . ] } -1 .. 1' and pugs -e 'say join \n, map { [{ 0 x $_}] }, -1 .. 1' should both print [] [] [0] But the Pugs code throws pugs: List.genericTake: negative argument Is this Pugs specific behavior or has the the x operator changed with

Purging [-1]

2007-05-25 Thread Jonathan Lang
I just went through all of the synopses searching for instances where [-1] is still being referenced in its perl5 sense; the following patches update them to correct perl6 syntax. I also took the liberty of fixing up a markup glitch in S03.pod. =begin S02 @@ -1379,7 +1379,7 @@ =item * -The