Help for this page

Select Code to Download


  1. or download this
      if ($optimize_history) {
        # remove duplicities from history
    ...
        # only add new line to the history file
        $term->WriteHistory($file);
      }
    
  2. or download this
      if ($optimize_history) {
        my @history = $term->GetHistory($file);
    ...
        $term->SetHistory(@history);            # set history to new list
      }
      $term->WriteHistory($file);               # save history
    
  3. or download this
    $history{$_} ? splice(@history,$i--,1) : $history{$_}=1;
    
  4. or download this
    Can't modify splice in scalar assignment at ./history.pl line 35, near
    + "1;"
    Execution of ./history.pl aborted due to compilation errors.