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 == is working or what its doing?
thanks! -c
In reply to variable set to 0 ? 0 : 1 by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |