On Sun, Jun 18, 2017 at 11:41 PM, ToddAndMargo > wrote:
On 06/17/2017 12:22 AM, yary wrote:
last if ++$true_count == 6;
Hi Yary,
++$true_count
Is that the same as `$true_count + 1` ?
And does it alter the
On Mon, Jun 19, 2017 at 12:41 AM, ToddAndMargo
wrote:
> On 06/17/2017 12:22 AM, yary wrote:
>
>> last if ++$true_count == 6;
>>
>
> ++$true_count
>
> Is that the same as `$true_count + 1` ?
>
> And does it alter the value of $true_count
>
Yes and yes, just like in C and
In this instance, it is the same as "$true_count = $true_count + 1".
++$var and $var++ differ if they are used in an assignment or other
operation.
For instance:
my $x = 1;
my $y = ++$x; # $x is incremented before assignment
my $z = $x++; # $x is incremented after assignment
At the end, $x =
On 06/17/2017 12:22 AM, yary wrote:
last if ++$true_count == 6;
Hi Yary,
++$true_count
Is that the same as `$true_count + 1` ?
And does it alter the value of $true_count?
-T
On 06/16/2017 09:11 PM, Gabor Szabo wrote:
I probably would not say "restart" the loop.
It goes to the*next* iteration of the loop:
I used "restart" because I wanted myself to think it
went back to the top, ignoring everything else
in the {} and proceeded to the next item in the loop.
I was