On Fri, 20 Sep 2002, Tanton Gibbs wrote: > > I believe the last two cases should be: > > > > (7,) == 1 > > (,) == 0 > > > > Because its the perl6 comma that creates the list, not the parenthesis. > > > > ~ John Williams > > If this is the case, then can you also have: > > (,7) > > What is its length?
Hmm, it's a syntax error in perl5. Maybe () is still the empty list in perl6, since it's not ambiguously something else. But I cannot tell whether (7) is list context or numeric context, so it seems like the listifying comma is needed to disambiguate, especially if it's next to a numeric comparison operator. ~ John Williams