On Wed, May 22, 2002 at 10:45:39PM +0100, Simon Cozens wrote:
> Scott Wiersdorf:
> >     if( $a%2 .. $a-- ) {
> 
> I don't understand this. You see, if $a-- leaves $a as false, then:
>     if ($a--)
> is the shortest way of solving the problem.

But that will change $a to true if it was false.


Here's what I understand the goal to be:

If $a is true, set $a to false and execute some code
If $a is false, do nothing.


Ronald

Reply via email to