#perl 5.26.1
my %food = ( 'apple' => 'fruit', 'pear' => 'fruit', 'carrot' =>
'vegetable');
my @mykey = keys
perl——使用keys/values函数返回hash的key/value数组
最新推荐文章于 2023-08-10 18:00:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#perl 5.26.1
my %food = ( 'apple' => 'fruit', 'pear' => 'fruit', 'carrot' =>
'vegetable');
my @mykey = keys