good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Deleting records from an arrayby Lotus1 (Vicar) |
on Dec 22, 2014 at 14:20 UTC ( [id://1111023]=note: print w/replies, xml ) | Need Help?? |
You could avoid the loop within a loop issue if you would loop through the array one time and lookup the hash elements as you go. Instead of doing you can do to check if the array element is in the hash. You didn't provide an example of your data but from your code it looks like it would work this way. Even with the approach of deleting array elements as they are used you would be rehashing (har har) a lot of data.
In Section
Seekers of Perl Wisdom
|
|