[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] for loops



Does anyone know why, when I use:

   for ($a=4; $a<8; $a+=1){
      print INDEX "$txt[$a]\n";

I get:

   # Use of uninitialized value.

returned in the compiler warnings?
Also, why when I use:

   for ($i=0; $i<7; $i+=1) {
      print TXT "$txt[$i]\n\r";

does it print all the lines of the list to my file, instead of just the first seven?

Pulling my hair out,
Ann
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for G. Ann Campbell
Content-Disposition: attachment; filename="vcard.vcf"

Attachment converted: macnas:vcard.vcf 2 (TEXT/R*ch) (00017193)