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
- Re: Sorting in-place Ronald J Kimball
- Re: Sorting in-place Clinton A . Pierce
- Re: Sorting in-place Bart Lateur
- Re: Sorting in-place pcg
- Re: Sorting in-place Abigail
- Re: Sorting in-place Michael G Schwern
- Re: Sorting in-place Ilmari Karonen
- Re: Sorting in-place pcg
- Re: Sorting in-place Ilmari Karonen
- Re: Sorting in-place Andrew Pimlott
- Re: Sorting in-place Ilmari Karonen
- Re: Sorting in-place Bart Lateur
- Re: Sorting in-place Ronald J Kimball
- Re: Sorting in-place pcg
- Re: Sorting in-place Michael G Schwern
- Re: Sorting in-place Abigail
- Re: Sorting in-place pcg
- Re: Sorting in-place Abigail
- Re: Sorting in-place Paul
