in reply to multidimensional dilemma

well, yes.. but what i'm looking for is somthing like this
input: @results = (); $results[1] = 1; $results[2] = 2; $results[3] = 1; $results[4] = 3; $results[5] = 1; $results[6] = 1; output: @resultsByCode = (); $resultsByCode[1] = (1,3,5,6); $resultsByCode[2] = (2); $resultsByCode[3] = (4);
is that making any sense?

Replies are listed 'Best First'.
Re: Re: multidimensional dilemma
by nmerriweather (Friar) on Jun 04, 2002 at 05:31 UTC
    nevermind
    push @{$resultsByCode[$resultStatus[$_]]},$_ for 0..5;
    was right -- i just switched to arrays and forgot. d'oh

    thanks again