我有一個Perl哈希數組聲明如下:在Perl訪問數組哈希
my %updatevars = (datapoints => []);
我後來試圖將元素添加到它:
push($updatevars{'datapoints'}, [$updatestart+$i, $bandwidth]);
我得到這個錯誤:
Type of arg 1 to push must be array (not hash element) at dirlist.pl line 61, near "])"