On Fri, 2007-01-19 at 16:21 -0600, David Moreno Garza wrote:
> On Fri, 2007-01-19 at 13:24 +0000, Rob Dixon wrote:
> >    ++$lines;
> 
> What's exactly the difference between:
> 
> ++$lines;
> 
> and
> 
> $lines++; ?


Nothing in this context.

It does make a difference if you are 'using' the value see sample and
try it:

$lines = 10;
$value = ++$lines;
print "first value is it 10 or 11? $value\n"
$value = $lines++;
print "second value is it 11 or 12? $value\n"

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to