Search code examples
perliteratorvisitor-patterndata-dumper

Perl module that works like Data::Dumper but allow data manipulation


Is there a popular Perl module that works like Data::Dumper but allows user to write hook to manipulate the data inside complex structure or object.

There are a few modules showing up in google such as Data::Visitor or Data::Structure::Util that might do the job, but I'm not sure if they are the popular ones .


Solution

  • I've written Data::Dmap to do this, but as mentioned, Data::Rmap, Data::Transformer and Data::Visitor are also relevant.

    The basic idea of Data::Dmap is that it allows you to transform anything in a nested data structure and still tries to behave like the built in map function.