Help for this page

Select Code to Download


  1. or download this
    # foo only has one element...
    if (@foo == 1) {
       ...
    }
    
  2. or download this
    my $num_elements=@foo;
    if ($num_elements == 1) {
       ...
    }
    
  3. or download this
    if ($foo[0] ne "" && $foo[1] eq "") {
       ...
    }