in reply to Help requested to find the cause of an "uninitialized value" message

Although not a direct answer to your question, I feel compelled to point out that Data::Dumper is a debugging aid and not a data serialization tool. You may want to look at Storable, JSON::PP (both core modules, there is also e.g. Cpanel::JSON::XS), or any of the other serialization formats like YAML.

Having said that, I actually did write Data::Undump::PPI to parse a subset of Data::Dumper output. I would still recommend one of the above modules though.

  • Comment on Re: Help requested to find the cause of an "uninitialized value" message

Replies are listed 'Best First'.
Re^2: Help requested to find the cause of an "uninitialized value" message
by andyok (Novice) on Jan 25, 2022 at 06:05 UTC
    Thank you for your thoughts.
    Unfortunately, Storable and JSON aren't installed.
    And given that the script is to be used by a larger group of people, getting them to do a local install first is a bit of a pain.
      Unfortunately, Storable and JSON aren't installed. And given that the script is to be used by a larger group of people, getting them to do a local install first is a bit of a pain.

      It's a bit strange that you have the core module Data::Dumper but not other core modules. The only OS that I've heard of where core modules may not be installed is RHEL and derivatives like CentOS, where you can install perl-core to get all of them, or to get individual modules, you could install e.g. perl-Storable or perl-JSON-PP. Otherwise, it could theoretically be a Perl version issue - JSON::PP was released as part of the core as of Perl 5.14 (over 10 years ago now). Also, make sure you looked for JSON::PP (core) and not JSON (not core).