-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data::Dumper
incomplete reference relationship
#22888
Comments
|
The problem is the entries in the first array ref are copies of D::D handles this reasonably for references, but For the class case, You can also handle this with an anonymous sub:
|
@tonycoz, is there any need for clarification of documentation here? (Otherwise, it seems this ticket is closable.) |
I'm not sure. The "working" case may be an accident, unlike new() the Values() method makes no attempt to save the aliasing of the values, copying them instead:
I think the Seen() method is the blessed way to get what the OP is after here, but it looks broken. I tried supplying So there may be a real bug here. |
The variables to be dumped are not always known at compile time. If
could be the implicit mode that is equivalent to this explicit one,
while the following mode would have the opportunity to give correct results for the
|
Perl: 5.36
Module:
Data::Dumper
The following
Dump
output correctly shows the relationship between$foo
and$bar
:However, when
$foo
is not a reference, the relationship is lost:The text was updated successfully, but these errors were encountered: