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
f
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++) {
>
> # Executing statements here
> }
> }
> 1) Is it legal in perl to use the for loop as mentioned above
Date sent: Thu, 10 Jul 2003 14:03:32 -0700 (PDT)
From: Hari Krishnaan <[EMAIL PROTECTED]>
Subject: Question on For loop usage in Perl
To: [EMAIL PROTECTED]
> Hello all,
> I was using a for loop in the following manner
Hello all,
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++) {
# Executing statements here
}
1) Is it legal in perl to use the for loop as mentioned above ?
2) If so when i compile perl gives a message as follows
:
"