What does a dollar sign followed by a question mark mean in Perl?

前端 未结 4 1864
萌比男神i
萌比男神i 2021-01-11 23:06

In the following in Perl script:

$a=apple
$b=orange

if ($?==0) {
  # do something
}

What does $? mean here?

4条回答
  •  -上瘾入骨i
    2021-01-11 23:50

    This is the status returned by the last system operation, pipe, or backtick operation. See reference perlvar.

提交回复
热议问题