Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Perl nested loop to print out two arrays n number of times in different patterns

by arty32l (Initiate)
on Sep 23, 2014 at 00:26 UTC ( [id://1101585]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    n = 9;
    @a = (1, 2 ,3);
    @b = (a, b, c);
    
  2. or download this
    $a[0] = 1 $b[0] = a
    $a[0] = 1 $b[1] = b
    ...
    $a[0] = 1 $b[0] = a
    $a[0] = 1 $b[1] = b
    $a[1] = 2 $b[2] = c
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1101585]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-29 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found