Re: Question on For loop usage in Perl

2003-07-13 Thread Jeff 'japhy' Pinyan
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

Re: Question on For loop usage in Perl

2003-07-13 Thread Janek Schleicher
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

Re: Question on For loop usage in Perl

2003-07-10 Thread Jenda Krynicky
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

Question on For loop usage in Perl

2003-07-10 Thread Hari Krishnaan
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 : "