in reply to "Out Of Memory" error

Providing information regarding the problem may help

"Out of memory" errors generally refer to two possible problems: the Random Access Memory (RAM) in the computer that was responsible for the execution of the Perl program became exhausted, or the memory of the user who executed the program became exhausted. ;)

Which Perl program led to the error/warning? What type of system are you running the program on? What is the name of the function that creates "thousands of combinations of values using 'glob'", and which package does that function originate from?

Steve

Replies are listed 'Best First'.
Re^2: "Out Of Memory" error
by zeni (Beadle) on Sep 07, 2009 at 05:49 UTC

    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!