Help for this page

Select Code to Download


  1. or download this
    sub AND {
        my $last;
    ...
        my $last;
        first {($last = $_)} @_ and $last;
    }
    
  2. or download this
    sub OR {
        @_ > 1 ? shift || OR(@_) : shift;
    ...
    sub AND {
        @_ > 1 ? shift && AND(@_) : shift;
    }