Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はハッシュを持っています
%value g=>10 i=>55 k=>4 n=>100
私は配列を持っています
@letters = ('k','i','n','g')
配列内のキーの順にハッシュをソートする方法を教えてください。
@letters配列に表示される順序でハッシュ値を出力する場合は、次のようにします。
@letters
print join ",", @value{@letters};