As I said before. Let us get rid of the distinction.
Here is Randal and Graham arguing about a 'fundamental' issue. I don't
think this is fundamental to 'What is Perl'. This is a great question
to stump someone on an interview.
Ignoring this "push a list/comma seperated list context through a
subroutine half way across the world".
Why can't we have an anonymous array on the 'stack' (If the stack will still
be there after -internals have a go at things?
<chaim>
>>>>> "RLS" == Randal L Schwartz <[EMAIL PROTECTED]> writes:
>>>>> "Graham" == Graham Barr <[EMAIL PROTECTED]> writes:
Graham> There is a difference
Graham> sub abc { return (7,8,9) }
RLS> That's returning either a list or a comma operator result, depending
RLS> on context.
Graham> sub def { my @a = (9,8,7); return @a; }
RLS> That's not returning the array. That's returning a copy of the contents
RLS> of @a in a list context, and the number of elements of @a in a scalar
RLS> context, using the "@a" operator. You still haven't "returned the array".
Graham> I am not refering to context, but what the user types. If an author
Graham> does not document the two subs above correctly as returning a list and an array
Graham> then a user may get surprised.
RLS> Yes, but the first part is getting the naming right. You don't
RLS> "return an array". :)
--
Chaim Frenkel Nonlinear Knowledge, Inc.
[EMAIL PROTECTED] +1-718-236-0183