G
Graham
I hope the subject isn't too misleading... I am trying to find the
number of elements of each "data" array in the following:
--
use Data:
umper;
@data = (1.0,2.0,3.0);
@test=(
{"id"=>"aaa", "units"=>"kW/m^2/st", "data"=>[@data]},
);
@data = (2.0,4.0,6.0);
push @test, {"id"=>"bbb", "units"=>"rad", "data"=>[@data]};
print Dumper @test;
print scalar($test[0]{"data"}), "\n";
--
All I can get is an address like ARRAY(0x64a0)? Surely it cannot be
that difficult to find out that there are 3 elements in each data
array
Thanks.
number of elements of each "data" array in the following:
--
use Data:
@data = (1.0,2.0,3.0);
@test=(
{"id"=>"aaa", "units"=>"kW/m^2/st", "data"=>[@data]},
);
@data = (2.0,4.0,6.0);
push @test, {"id"=>"bbb", "units"=>"rad", "data"=>[@data]};
print Dumper @test;
print scalar($test[0]{"data"}), "\n";
--
All I can get is an address like ARRAY(0x64a0)? Surely it cannot be
that difficult to find out that there are 3 elements in each data
array
Thanks.