XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> My best guess is
an array of blessed hashes
Well yes, an array of 3 different widget objects of class Gtk2::Window. Data::Dumper is trying to represent the input as a string, which can be reversed by evaling it again. (quote: "stringified perl data structures, suitable for both printing and eval" ) Since the name of an object constructor is not fixed in Perl("->new" is only a convention) using bless is the most accurate way to do it.
editI just checked there is indeed a new constructor for Gtk2::Window : http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Window.html#widget_Gtk2_Window_n So it might be possible to represent the same information with $VAR1 = [ Gtk2::Window->new(), Gtk2::Window->new(), Gtk2::Window->new() ] but to be sure me as a human would need to look up the implementation. Data::Dumper as a piece of code can't do this.
Cheers Rolf
updatePS: Not sure what you meant with DSC, in perldsc this stands for Data Structure Cookbook.. In reply to Re: what type of datastructure is this
by LanX
|
|