NAME

Data::Printer::Filter::StructDumb - a Data::Printer filter for Struct::Dumb

VERSION

version 0.001

SYNOPSIS

By default, Struct::Dumb on v5.40 and later would print as, at best, opaque object. On earlier perls, it would cause an exception. Neither of these is ideal. This filter will dump the actual properties of the struct.

Right now, it's something like this:

data [
  [0] struct main::Point {
        x => 1,
        y => 2,
      },
  [1] struct main::Point3D {
        x => 10,
        y => -20,
        z => "ten",
      },
]

In the future, there may be more options for compact formatting, omitting field names, and who knows what else.

PERL VERSION

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

AUTHOR

Ricardo Signes <cpan@semiotic.systems>

CONTRIBUTOR

Ricardo Signes <rjbs@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 by Ricardo Signes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.