coke4all has asked for the wisdom of the Perl Monks concerning the following question:
Hi there,
i´v the following problem. I´ve created a nested Object Oriented Moose Object '$X' which consists itself of further Sub-Objects. One of the Sub-Objects '$y' is placed more than once within '$X'.
My aim now is to print out a PLAIN representation of the object '$X'.
At the moment i do this with:
my $plain = Dumper(unbless($X));Generally this works, but the problem is that i´ve left one reference variable '$VAR1 = {...}' in this output ($plain). The reason is that i´ve the Sub-Object '$y' more than once within the Object '$X'.
Does anybody know how to avoid this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: nested unbless of Data::Dumper output
by Eliya (Vicar) on Mar 20, 2013 at 11:19 UTC | |
by coke4all (Novice) on Mar 20, 2013 at 12:42 UTC | |
|
Re: nested unbless of Data::Dumper output
by Anonymous Monk on Mar 20, 2013 at 10:35 UTC |