Help for this page

Select Code to Download


  1. or download this
    sub arrayindex {
        my $value = shift;
    ...
    
        return -1;
    }
    
  2. or download this
    my $index;
    for $index (0..$#values) {
        last if $values[$index] eq $value;
    }