in reply to what type of dsc is this
My best guess is an array of blessed hashes...
Agreed... and a little snippet that might be helpful?
perl -Mstrict -MData::Dumper -we ' package Test; sub new { my $class = shift; my $stuff = {}; bless $stuff, $class; return $stuff; } package Main; my $t = [ Test->new("foo"), Test->new("bar"), Test->new("baz"), ]; print "Ref: " . ref($t) . "\n"; print Data::Dumper->Dump([$t]) . "\n"; ' __output__ Ref: ARRAY $VAR1 = [ bless( {}, 'Test' ), bless( {}, 'Test' ), bless( {}, 'Test' ) ];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: what type of dsc is this
by LanX (Saint) on Oct 09, 2018 at 00:46 UTC | |
by dbuckhal (Chaplain) on Oct 09, 2018 at 03:00 UTC |
In Section
Seekers of Perl Wisdom