> But now my C++ mid-term I just took last night has me thinking like this: > > my $i = 0; > foreach my $single_reason (split /\|/, $reason) { > my $id = $ids[$i++]; Why do you want to know where in the array you are? Should you be avoiding the loop index entirely? -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance