On Tue, Aug 07, 2001 at 12:27:50AM +0300, Ilmari Karonen wrote:
> () is an empty list, and the fact that an empty list
> constant evaluates to undef in *scalar* context is an explicit feature
> of constant.pm.

It doesn't.  "()" isn't an empty list in scalar context.  "A list in
scalar context" is nonsense in Perl terms.  This is not pedantic
point.  From perlfunc,

    Remember the following important rule: There is B<no rule> that
    relates the behavior of an expression in list context to its
    behavior in scalar context, or vice versa.

Andrew

Reply via email to