arty32l has asked for the wisdom of the Perl Monks concerning the following question:
I am looking to create a loop where the following data is printed n number of times. So given:"
n = 9; @a = (1, 2 ,3); @b = (a, b, c);
$a[0] = 1 $b[0] = a $a[0] = 1 $b[1] = b $a[1] = 2 $b[2] = c $a[1] = 2 $b[0] = a $a[2] = 3 $b[1] = b $a[2] = 3 $b[2] = c $a[0] = 1 $b[0] = a $a[0] = 1 $b[1] = b $a[1] = 2 $b[2] = c
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl nested loop to print out two arrays n number of times in different patterns
by biohisham (Priest) on Sep 23, 2014 at 02:51 UTC | |
by johngg (Canon) on Sep 23, 2014 at 09:48 UTC | |
by Anonymous Monk on Sep 23, 2014 at 06:41 UTC | |
Re: Perl nested loop to print out two arrays n number of times in different patterns
by LanX (Saint) on Sep 23, 2014 at 01:21 UTC | |
Re: Perl nested loop to print out two arrays n number of times in different patterns
by Anonymous Monk on Sep 23, 2014 at 00:43 UTC |
Back to
Seekers of Perl Wisdom