You were looking for if/else. You'd use or to string together multiple conditionals.
if ( $dothis ) { if ( dofistcritical() ) { dofirstremainder(); } elsif ( dobackupcritical() ) { dobackupremainder(); } else { die "main and backup failed"; } exit 0; }
In reply to Re: Nested OR as a control structure
by diotalevi
in thread Nested OR as a control structure
by andyf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |