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.