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.
在 Puppet 中是否可以在不调用类或自定义类型中的自定义函数的情况下更改哈希键?
几乎调用了常规的 ruby 函数。
$myHash.keys.each { |k| $myHash[k + "_toto"] = $myHash[k]; $myHash.delete(k) }