in reply to Array or Hash problem!
I have difficulties understanding your problem since there seem to be words missing in your problem description: "in here I need to store the acc_id the match what was found in the @code_array"
Apart from correcting above sentence you could answer the following question to shed more light on your problem: What would be wrong with the following solution:
$ids{$accountnumber}= $acc_id;
or, if accountnumbers had more than one acc_id:
push @{$ids{$accountnumber}}, $acc_id;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array or Hash problem!
by Anonymous Monk on Mar 04, 2010 at 18:28 UTC | |
by jethro (Monsignor) on Mar 04, 2010 at 19:04 UTC |