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

Re: [Omaha.pm] $ids[$i++]



> 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