in reply to Data::Dumper and Data::Printer continual output
From each docs:
> Each hash or array has its own internal iterator, accessed by each, keys, and values. The iterator is implicitly reset when each has reached the end as just described; it can be explicitly reset by calling keys or values on the hash or array.
IIRC is Data::Dumper resetting the counter internally.
see also do-not-use-each by Reini Urban.
Honestly I don't understand your intention, because Dumper is already recursively descending into the nested data structure. And those modules can't achieve it without using keys or values.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
rephrased and added references.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Data::Dumper and Data::Printer continual output
by opaltoot (Novice) on Oct 22, 2018 at 14:03 UTC |