Piers Cawley:
# In the following code fragment, what context is foo() in?
#
#     @ary[0] = foo()

The short answer is scalar context.  The long answer is below.  Note
that the long answer is only the way I think of it.  You may think
differently.

I like to think of it as 'one context'.  'Scalar' and 'list' no longer
describe the whole situation.  The way I see it, there are three types
of context:
        -void context (which could just be 0 context)
        -N context
        -infinite context (which could just be Inf context)

Ihe meaning of each of those should be obvious.  In that case, 'scalar'
context is really 'one' context.  However, we can still call it scalar
context if it makes you feel better.  :^)  (Yes, those are just my
opinions.  They do not necessarily reflect Larry's, Damian's or the guy
in the padded cell next to mine's.)

--Brent Dax
[EMAIL PROTECTED]
Configure pumpking for Perl 6

"Nothing important happened today."
    --George III of England's diary entry for 4-Jul-1776

Reply via email to