http://qs321.pair.com?node_id=377887

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:

my @array = (0..9); my $start = 4; my $end = 6;
Output would need to look like:

0000 1000 1100 1010 1001 2000 2100 2010 2001 3000 3100 3010 3001 4000 .... ..... ...... ...... 999999
Is 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.