in reply to To each() their own
G'day Ancient.Wizard,
Welcome to the Monastery.
The error is easy enough to generate using the each function, and a modificaton to the hash while iterating; doing so, without each(), is more difficult. I haven't encountered this issue previously; I don't know how to replicate it.
"I guess the real question is how to determine where this each() warning is coming from?"
You can turn that warning off, either in a lexically scoped block, or for a portion of sequential statements. perldiag shows that warning as "(S internal)". Keep in mind that turning off 'internal' warnings will get rid of not only your each() warnings but also all other 'internal' warnings.
# each() (and other 'internal") warnings here { no warnings 'internal'; # No each() (or other 'internal") warnings here } # each() (and other 'internal") warnings here no warnings 'internal'; # No each() (or other 'internal") warnings here use warnings 'internal'; # each() (and other 'internal") warnings here
While I appreciate that your "application I'm coding at work" is likely to be confidential and not something you can post here; without seeing the code, and being able to replicate the issue, our responses will only be guesswork and conjecture. If you're able to reduce your problem to an SSCCE, the quality of answers may well improve.
See also: warnings.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: To each() their own
by Ancient.Wizard (Novice) on May 02, 2017 at 12:19 UTC | |
by shmem (Chancellor) on May 02, 2017 at 13:28 UTC | |
by Ancient.Wizard (Novice) on May 02, 2017 at 19:44 UTC | |
by shmem (Chancellor) on May 02, 2017 at 20:25 UTC | |
by kcott (Archbishop) on May 03, 2017 at 06:27 UTC |