in reply to Re: Misprinting combinations / iterator
in thread Misprinting combinations / iterator

You're right, Marshall! Thank you all for your kind and quick answers! :]

  • Comment on Re^2: Misprinting combinations / iterator

Replies are listed 'Best First'.
Re^3: Misprinting combinations / iterator
by Marshall (Canon) on Mar 27, 2012 at 20:18 UTC
    The examples in the module's docs weren't completely explanatory - I can see how this was confusing!

    There is a "core" module (meaning that is pre-installed and exists on all Perl installations), Data::Dumper. It can print a representation of any Perl data structure - WOW! You need to give it a reference to the structure.

    This is fantastic debugging tool.
    There is no equivalent in 'C' or 'Java' of which I am aware.

    use Data::Dumper; # in your loop put... print Dumper \$combination;