in reply to Nested OR as a control structure
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; }
|
|---|