Help for this page

Select Code to Download


  1. or download this
    @statusoption = splice(@statusoption,
         (grep $statusoption[$_] eq $status, 0..$#statusoption)[0]);
    
  2. or download this
    @statusoption = @statusoption[
    (grep {$status eq $statusoption[$_]} 0..$#statusoption)[0]
    ..$#statusoption];
    
  3. or download this
    splice(@statusoption, 0, (grep $status eq $statusoption[$_], 0..$#stat
    +usoption)[0]);
    
  4. or download this
    splice(@statusoption, 0,
       &{sub {
           grep {$status eq $statusoption[$_] and return $_} 0..$#statusop
    +tion
        }}
    );