Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a list of array elemetns and am trying to generate a sequential list of these elements. What would be the best way to do this?
Example:
Output would need to look like:my @array = (0..9); my $start = 4; my $end = 6;
0000 1000 1100 1010 1001 2000 2100 2010 2001 3000 3100 3010 3001 4000 .... ..... ...... ...... 999999Is there an easy or more efficient way of doing this? I want to have the generating start at the number of digits designated by $start and end when it gets to the number of digits designated by $end.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Generate sequential array element combos
by BrowserUk (Patriarch) on Jul 27, 2004 at 23:45 UTC | |
Re: Generate sequential array element combos
by davidj (Priest) on Jul 28, 2004 at 01:17 UTC | |
by exussum0 (Vicar) on Jul 28, 2004 at 03:08 UTC | |
by hbo (Monk) on Jul 28, 2004 at 03:24 UTC | |
by Anonymous Monk on Jul 28, 2004 at 04:57 UTC | |
by tye (Sage) on Jul 28, 2004 at 05:37 UTC | |
by BrowserUk (Patriarch) on Jul 28, 2004 at 06:22 UTC | |
by hbo (Monk) on Jul 28, 2004 at 05:53 UTC | |
Re: Generate sequential array element combos
by kelan (Deacon) on Jul 29, 2004 at 15:31 UTC |
Back to
Seekers of Perl Wisdom