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

perl

Solution

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

Problem

In the following in Perl script: ``` $a=apple $b=orange if ($?==0) { # do something } ``` What does `$?` mean here?

Original source