On Sun, Apr 17, 2005 at 08:00:00PM -0700, Brent 'Dax' Royal-Gordon wrote:
: Larry Wall <[EMAIL PROTECTED]> wrote:
: > : First, context of hash slices:
: > : Hash slices with {} notation are trivially either scalars or lists:
: > :  $h{'foo'} = want(); # Scalar
: > :  $h{'foo','bar'} = want(); # List
: > 
: > Right.
: 
: Tangentially, that makes me wonder: is there a difference between
: scalar context and one-element array context?

Certainly, same distinction as Perl 5 makes.  The only difference
is that Perl 6 can evaluate a list lazily, so it might not actually
have to generate the entire list if you only want the first value.

Larry

Reply via email to