in reply to Re^2: question to a complex structure of hash/array
in thread question to a complex structure of hash/array
>push @results, @array; extends @results by the elements of @array, it doesn't "push an array", as all the elements of an array must be scalars. You can push an array reference, though:
yes, thanks, so to getting it keep as an array, I push it to a hash.
e.g.Regards, buchimy %plotx; my $i; my @xfix; push @{$plotx{$i}}, @xfix;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: question to a complex structure of hash/array
by buchi2 (Acolyte) on Aug 09, 2017 at 08:10 UTC |