首页 > 试题广场 >

以下Perl程序的输出结果是下列哪个选项? my %h1 =

[单选题]

以下Perl程序的输出结果是下列哪个选项?

my %h1 = (
    "here" => '1',
    "there" => '2',
    "those" => '3';
);
if(exists($h1{"there"})) {
    print "there exist!";
}else {
    print "Don’t exist!";
}

  • Don’t exist!

  • there exist!

  • undef
  • 其他选项都不对

这道题你会答吗?花几分钟告诉大家答案吧!