data-dump icon indicating copy to clipboard operation
data-dump copied to clipboard

Class names with '=' character not handled

Open rjattrill opened this issue 12 years ago • 2 comments

The Perl interpreter does not place any restrictions on class names.

However, class names with an '=' sign cause Data::Dump to issue a warning such as:

Can't handle >Table2|t2=HASH data at c:/opt/strawberry/perl/vendor/lib/Data/Dump.pm line 377.

Data::Dump then cannot dump the instance data.

There is a rough test case at https://gist.github.com/rjattrill/5955171 which can be used to demonstrate this.

See also https://rt.perl.org/rt3//Public/Bug/Display.html?id=101814 for a similar bug.

The CPAN module DBIx::DataModel creates classes dynamically and uses '<=>' to indicate result sets based on dynamic table joins.

rjattrill avatar Jul 09 '13 06:07 rjattrill