P is for Practical | |
PerlMonks |
Re^2: "Out Of Memory" errorby zeni (Beadle) |
on Sep 07, 2009 at 05:49 UTC ( [id://793883]=note: print w/replies, xml ) | Need Help?? |
Hi Steve, There is this function called genCombinations which generates several combinations for a set of values using glob. Ex: f1= (1,2) f2 = (3,4,5) No. of unique combinations = 6 1,3 1,4 1,5 2,3 2,4 2,5 Fields can be several tens and they can also have a range of values like: f1 = range(0 to 100) f2 = values(2,5) In such case no. of unique combinations will be 200. So i used a glob to create these combinations. @arr = glob{ (0 to 100),(2,5) };How else can i create these combinations so that the Out Of Memory error vanishes!
In Section
Seekers of Perl Wisdom
|
|