On Sep 9, Brian Volk said:
I see a lot of code that usrs:
my $i = 0;
Why do so many people use $i ? It is a special variable in PERL maybe for
integers?
It has no special significance. Many people use it to refer to the
*I*ndex of a list or array.
People have been using $i as a counter variable for a couple decades at
least.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>