- 论坛徽章:
- 0
|
回复 1楼 fiowrf 的帖子
Hallo,
try to use complex data structure: see more
perlreftut Perl references short introduction
perldsc Perl data structures intro
perllol Perl data structures: arrays of arrays
For examples, creating datastructure Array of Hashes
think about such as:
$wind_HoA = {
'"speed" => {
"timestamp_1" => [ "per line as element", ... ], # put data line as one element, don't split it.
"timestamp_2" => [ ... ],
# more ...
},
"direc" => {
"timestamp_1" => [],
# more .....
},
};
After data structure generated, then access(process the data in the reference of array
, split, modify and caculate it.
Try again, -- ulmer |
|