On Jul 13, Janek Schleicher said:
>Hari Krishnaan wrote at Thu, 10 Jul 2003 14:03:32 -0700:
>
>> I was using a for loop in the following manner in one of my perl programs.
>>
>> for($j=31, $n=$initial;$j>=0,$n<=$final;$j--,$n++) {
The test of $j >= 0 is wasted here. Perhaps you meant to say
for ($j = 31, $n = $initial; $j >=0 and $n <= $final; --$j, ++$n) {
# ...
}
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]