初始化
%hash1 = (the, 200, of, 149);
%hash2 = ("the", 200, "of", 149);
%hash3 = (the => 200, of => 149);
%hash4 = ("the" => 200, "of" => 149);
%hash5 = (1..9)
存取
++$counts{ $word }
Functions
@indexes = keys %words;
@wordlist = values %words;
exists ($words{ $key })
Perl using Hashes
最新推荐文章于 2024-10-17 15:14:13 发布