Mega Code Archive

 
Categories / Perl / Statement
 

The unless statement is the opposite of if and executes a block unless a condition is true

unless (condition) {   # ... } or: unless (condition) {   # ... } else {   # ... }