Yup... 

In program 1 you will get $i to be 1 and then $count will be set to 2
In program 2 you will get $count to be set to 2 and then assigned to $i
  so now $i will also be 2.

Its just a prcedence thing... 

Program 1
----------
my $count = 1;
my $i     = $count++;
print "$i\n";

Program 2
----------
my $count = 1;
my $i     = $++count;
print "$i\n";




On Sat, 2002-12-07 at 03:54, Mystik Gotan wrote:
> Hiya,
> 
> is there any difference between $count++ and ++$count?
> Just wondering.
> 
> Thanks.
> 
> 
> 
> 
> 
> _________________________________________________________________
> Ontvang je Hotmail & Messenger berichten op je mobiele telefoon met Hotmail 
> SMS http://www.msn.nl/jumppage/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to