Skip to content

Conversation

@djerius
Copy link
Contributor

@djerius djerius commented Aug 7, 2025

Data::Dumper (at least as of 2.192, which is in the Perl git repo) doesn't support the new SVt_PVOBJ type, and generates a warning when it encounters it. It does actually return something, but the warning can be quite annoying.

This commit special cases reftypes of 'OBJECT', avoiding use of Data::Dumper altogether.

An alternative might be to filter out warnings for SVt_PVOBJ, but that seems an iffy approach.

I didn't add a test, as I'm not quite sure where it should go.

Data::Dumper (at least as of 2.192, which is in the Perl git repo)
doesn't support the new SVt_PVOBJ type, and generates a warning
when it encounters it.  It does actually return something, but
the warning can be quite annoying.

This commit special cases reftypes of 'OBJECT', avoiding use of
Data::Dumper altogether.
@djerius
Copy link
Contributor Author

djerius commented Aug 7, 2025

Sorry, this doesn't quite work for nested structures which contain perl objects. I guess the only way to deal with that is by suppressing the warning message.

@djerius djerius closed this Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant