> $upper = 2048; > for ($i = 1; $i <= $upper; $i ++) { > $date = &getadatestringfromsomewhere(); > $my_date = &parseDate($date); # return a different date format > } The code you posted does not exhibit any "bug" on my system. (Of course, I had to take out the date stuff). Do you mean that your date functions were clobbering your global variable $i? That's not a bug, that's bad programming (and nothing "fun" about that). Does the "bug" go away if you use the PROPER elegant for my $i (1..$upper) instead of that HORRID old C-syntax for-loop? -- - - Martin "Kingpin" Thurn mthurn@tasc.com Research Software Engineer (703) 793-3700 x2651 The Information Refinery http://tir.tasc.com TASC, Inc. http://www.tasc.com This baby's got a few surprises left in her. -- Han, The Empire Strikes Back ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe