Help for this page

Select Code to Download


  1. or download this
    foreach my $i (0..$#$types) {
        if ($i && $i == $#$types) {
    ...
        } elsif ($i) {
                    $sentence .= ', ';
                }
    
  2. or download this
    for(@$types) {
        if($_ eq $types->[-1]) {
            $sentence .= $matches>1 ? ' and ' : ' or '
        } else { $sentence .= ', ' }