Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-05 Thread Chaim Frenkel
> "PS" == Peter Scott <[EMAIL PROTECTED]> writes: PS> I find myself wishing there were something we could do about the PS> context rules. They seem simple enough, individually, but when PS> you put them together - well, there was a quiz a year or so ago - PS> I forget whether it was in TPJ o

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-05 Thread Peter Scott
At 01:20 PM 9/3/00 +1100, Damian Conway wrote: >> Modulo some superpositional silliness, > >Hey! I resemble that remark! > >Damian I guess this means we should expect a N'Yuk module some time in the future... -- Peter Scott Pacific Systems Design Technologies

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-05 Thread Tom Christiansen
>Hey, waitaminute. That isn't a list in sub fn in the first place; it's >three expressions separated by scalar commas. Why is there no complaint >about useless use of a constant in void context? >$ perl -Mstrict -wle 'sub f{return(3,5,7)} my $x = f()' >$ perl -Mstrict -wle 'my $x = (3,5,7)' >

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-05 Thread Nathan Torkington
Peter Scott writes: > Hey, waitaminute. That isn't a list in sub fn in the first place; it's > three expressions separated by scalar commas. Why is there no complaint > about useless use of a constant in void context? > > $ perl -Mstrict -wle 'sub f{return(3,5,7)} my $x = f()' > $ perl -Mstri

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-05 Thread Peter Scott
At 01:45 PM 9/4/00 -0600, Tom Christiansen wrote: > >package main; > >sub fn { return (3, 5, 7) } > >tie $x, 'MaiTai'; > >$x = fn; > >$ /tmp/foo > >STORE: 7 > > >Why don't I see three STOREs? > >Because Perl is too clever to bother. :-) Hey, waitaminute. That isn't a list in sub fn in the first