in reply to How can one get the correct results of all combinations with bigger input files?

You need to first learn and understand why your current approach fails. Combinatorial Explosion and Cartesian Product are most likely good candidates for reading.

After that, Higher Order Perl explains the "odometer" technique for implementing a way to enumerate combinations without needing much memory. In fact, if you already know how to program, the whole book is quite good reading.

After that, you should be able to understand Algorithm::Loops and should be able to use it.

  • Comment on Re: How can one get the correct results of all combinations with bigger input files?

Replies are listed 'Best First'.
Re^2: How can one get the correct results of all combinations with bigger input files?
by supriyoch_2008 (Monk) on Apr 27, 2013 at 11:21 UTC

    Hi Corion,

    Thanks for the constructive suggesstions. I shall read the material suggested by you.

    With regards,