in reply to Anonymous array in object
One way to solve this is to write.
Note that with the give code, you don't need to initialize $$self{__name}, as Perl will autovivify it if necessary.my $self; $$self{__name} = $fields{__name}; $$self{__mpp} = @{$fields{__mpp}};
|
|---|