Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Creating combinations using arrays

by LanX (Saint)
on Mar 05, 2013 at 23:07 UTC ( [id://1021913]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    rec_for([1..3],["a".."c"],[10..13]);
    
    ...
        print "tuple: @tuple\n";
      }
    }
    
  2. or download this
    /usr/bin/perl -w /home/lanx/B/PL/PM/recursive_for.pl 
    tuple: 1 a 10
    tuple: 1 a 11
    ...
    tuple: 1 b 10
    tuple: 1 b 11
    ...
    
  3. or download this
    rec_for(a=>[1..3],b=>["a".."c"],c=>[10..13]);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found