in reply to Re^3: Operator precedence (void context)
in thread Operator precedence (or, I'm an idiot)

As to how Perl can be improved. I agree with tye, map and grep should generate a warning in void context. I'd leave out the foreach recommendation except under diagnostics.

In the same vein, Perl should have a wantvoid or wantbool operator so that the general case can be handled.

Replies are listed 'Best First'.
•Re: Void context
by merlyn (Sage) on Mar 08, 2003 at 18:40 UTC
      Great. Thanks.

      Guess I'm going have to make an effort to catch up on the parts of Perl I "know". And guts was getting so tempting.

      rir -- only about seven years behind the times