![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
"no warnings 'uninitialized'" failingby jest (Pilgrim) |
on Oct 16, 2017 at 14:05 UTC ( #1201444=perlquestion: print w/replies, xml ) | Need Help?? |
jest has asked for the wisdom of the Perl Monks concerning the following question: An older part of our codebase has a function for converting a data structure to XML, using XML::Simple (for some legacy reason), and saving it to a directory. At some point, we upgraded XML::Simple to 2.24, and it started throwing "Use of uninitialized value" errors. Whatever caused this was irrelevant to our purposes, so I put this in a block with "no warnings 'uninitialized';", and all was good. For no reason that I can tell--I didn't upgrade any package, or my Perl version (5.16.3 for this)--our test suite is now throwing the error again, though the "no warnings" is right there: Result from test suite: Where line 205 is the "my $xmlout..." from above. Can someone explain why I am getting a warning that I explicitly shut off on the immediately preceding line? And how I stop this? The tests pass, but it's distracting as hell to get 50 lines of this error every time we run it.
Back to
Seekers of Perl Wisdom
|
|