The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Marketplace::Rakuten::Utils

DESCRIPTION

Common routines for the Marketplace::Rakuten classes.

EXPORTS

None. You have to call the full name of the functions, e.g.

Marketplace::Rakuten::Utils::turn_empty_hashrefs_into_empty_strings($data)

FUNCTIONS

turn_empty_hashrefs_into_empty_strings

The module used for the XML parsing, XML::LibXML::Simple, doesn't ignore empty tags, but instead return an empty hashref. With this function (which doesn't recurse for deeper structures), the hashref passed as argument will be modified to consider and empty hashref as an empty string.