in reply to Numeric limits in perl

Obviously, you went beyond the memory limit of your machine. (If you have more memory on your machine, you can hold a bigger array.)

I suggest doing one (or more) of the following three things:

  1. Add more RAM. (This solution will help, but will not fix your problem.)
  2. Move the array into a database. (This sounds like a perfect job for a database, actually.)
  3. Find a better algorithm.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Numeric limits in perl
by ergowolf (Monk) on Mar 25, 2003 at 20:34 UTC
    4.) distributed Computing

    You could write a simple server that hands out number ranges and recieves results and a client that does the number crunching. If you spread that over five to ten machines, you will get the solution much faster or even better add a database and find a better algorithm.