You can use "else" with "unless".
"unless" means "if not", so it reverses the meaning of an "if" comparison.
See perlsyn for details.
Please read Where should I post X? and How (Not) To Ask A Question.
In reply to Re: what is benefit of unless ?
by Anonymous Monk
in thread unless statements
by root
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |