http://www.perlmonks.org?node_id=1064897


in reply to Re^9: Variable number of foreach loops
in thread Variable number of foreach loops

Dude, Not sure what i have repeated again and again..you asked for code...i showed you. Not sure how else you want to represent. The arguments i am passing to print_comb() function can create "variable" number of arrays. So i should be able to pass this variable-arrays to gen_loops(). I cannot have a static call like:
gen_loops(2,\@array_1,\@array_2)
and i want it like...
gen_loops($count, < "$count" number of arrays>)
Not sure if i am able to explain. Anyways i have figured it out in some round-about manner. Thanks for your help.