How to test if a value exist in a hash?

后端 未结 6 1334
-上瘾入骨i
-上瘾入骨i 2020-12-08 12:20

Let\'s say I have this

#!/usr/bin/perl

%x = (\'a\' => 1, \'b\' => 2, \'c\' => 3);

and I would like to know if the value 2 is a ha

6条回答
提交回复
热议问题