is more clearly interpreted by perl to be while ($a < $b) if not $error{ $a++; }. Perl thinks $error{ $a++ } is a hash reference to %error. A construct that would DWYM would be (parenthesis not strictly necessary)while ($a < $b) if not $error { $a++; }
(!$error) && ($a++ while ($a < $b))
In reply to Re: backwards if and while looping
by periapt
in thread backwards if and while looping
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |