On Fri, May 03, 2002 at 11:13:45AM -0700, David Whipp wrote: > Damian Conway wrote: > > BUGS > > Unlikely, since it doesn't actually do anything. However, > > bug reports and other feedback are most welcome. > > Bug: > > don't { die } unless .error; > > doesn't DWIM (though the current behavour, "do nothing", is > logically correct).
Yeah, this was on #perl yesterday. I still say it makes sense as-is. The conditionals aren't subtle, they simply ask "to execute or not to execute?". In a: do { something } unless .error; you have two options: either the C<do { something }> executes, doing "something", or the C<do> statement doesn't execute. With a C<don't>, you'd have the same two options. Either the C<don't { whatever} > executes, doing nothing, or the C<don't> doesn't execute, still doing nothing, just a little bit sooner. Allison