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.
Back to
Seekers of Perl Wisdom