Help for this page

Select Code to Download


  1. or download this
    {
      foo() || die "foo() didn't return true";
      bar() || die "bar() didn't return true";
      ... and so on
    }
    
  2. or download this
    every { block of statements }
    run { block to be run after each statement in 1st block  }
    
  3. or download this
    every {
      foo();
    ...
      my $result = shift; # What the statement returned
      die "Command $command did not return true!" unless $result;
    }