I have a series of numbers in a file (ex. 1 9 2 8 3 7 4 6 5 10) and I need to list all of the combinations of a subset of these numbers. I imported the numbers from the file into an array (@numbers) and then tried to use the Algorithm::Combinatorics combinations function, but I can't get it to read the actual numbers in my array. In all of the examples they create the initial array using
@array = qw(1 2 3 4 5) etc.
My file is too long to organize it this way, but when I input my array using the instructions in the module it just reads the combinations as "ARRAY(0x22180f4)" etc. How do I get it to read my array?
Thanks