in reply to Re: Confused as to why the "casting context" is mis-behaving ("list vs array", again)
in thread Confused as to why the "casting context" is mis-behaving

And, no, the last time I checked, what a slice returns in scalar context is not even documented.

now changed in blead perl

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re^2: Confused as to why the "casting context" is mis-behaving (docs)

Replies are listed 'Best First'.
Re^3: Confused as to why the "casting context" is mis-behaving (docs)
by ikegami (Patriarch) on Oct 22, 2010 at 15:50 UTC
    Patch is wrong. $u is assigned '2'

    ...which appears to have been fixed already. It would have been clearer had the data been adjusted instead of the comment.

      Patch is wrong.

      Right.

      $u is assigned '2'

      No, 'B'. Which is why it's clearer to change the comment, not the data.

      Perl 6 - links to (nearly) everything that is Perl 6.
        'second' is the value returned in one case and not in the other. The lack of symmetry adds confusion.