Help for this page

Select Code to Download


  1. or download this
    sub get_index (\@$) { 
      my ($a, $e) = @_; 
    ...
      for (@$a) { return $i if $e eq $_; $i++; } 
      return -1; 
    }
    
  2. or download this
    sub get_index (\@$) {
      my ($a, $e) = @_;
    ...
      }
      return -1;
    }