|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Misprinting combinations / iteratorby tangent (Friar) |
| on Mar 27, 2012 at 15:36 UTC ( #961960=note: print w/ replies, xml ) | Need Help?? |
|
The $combination variable returned by the iterator is an array reference, so you need to de-reference it in order to print. The following will print each combination on a line, with each element separated by a tab character: The @{ } construct is what de-references the array reference
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||