perlquestion
c
<code> return $status == 0 ? 0 : 1;</code><p>
I read through [return] and I've used it in the past to return values from within a subroutine to the main script. However, I'm very confused by this snippet I am seeing in a script I've downloaded from the internet. I'm not sure what is going on with the values that $status is being set to. They're unquoted, so not a literal string, and I would have thought that question mark would have caused problems. Can someone explain just how that <code>==</code> is working or what its doing?<p>
thanks! -[c]