"Randal L. Schwartz" wrote:
> 
> >>>>> "Martyn" == Martyn Pearce <[EMAIL PROTECTED]> writes:
> 
> Martyn> Possibly, although I must ask: since everything is up-for-grabs, I ask
> Martyn> (without implying any feeling one-way-or-tother):
> Martyn> How useful is the , operator in it's C-style statement separator, as
> Martyn> opposed to list separator guise?  It seems to be a common cause of
> Martyn> confusion.
> 
> I use it a lot, in places where I want two expressions executed,
> especially as one part of "EXPR while EXPR" or "EXPR if EXPR".
> Yeah, I could use a do-block on either side, but then I might
> as well go to a full while statement.
> 
>    warn("too much information"), return 3 if $some_condition;
> 
> Very handy.

warn("too much information") and return 3 if $some_condition;

works, but depends on the return value of warn. I bet it would cover
most uses, though. I'd love to eliminate the comma ambiguity.

We could add a 'then' keyword.

Reply via email to