Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: "Out Of Memory" error

by zeni (Beadle)
on Sep 07, 2009 at 05:49 UTC ( [id://793883]=note: print w/replies, xml ) Need Help??


in reply to Re: "Out Of Memory" error
in thread "Out Of Memory" error

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://793883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-19 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found