in reply to Re: loop control
in thread loop control

Using grep is a good suggestion, but I don't think it'd work for me in this case because the array typically consists of nested values. In other words, $tmp5 needs to be specified as a child of $tmp4 unless $tmp4 was a termination of $tmp3.... or something like that. I could design the logic to backtrack and do these checks, but it just makes more sense to parse through them one by one.