Parse out alphabetic characters

From: May (hmtan_at_hotmail.com)
Date: 05/28/04

  • Next message: Andrew Gaffney: "weird math"
    Date: 27 May 2004 20:29:47 -0700
    
    

    Hi,
      I would like to parse out the same name between
      the new and old array , lists of new cells in new array and old cells
      in old array. But the scripts are not working right.
      Is this because the name of the array are in alphabetic ?
      Anyone could help me or advise please ?
      Thanks in advance.

          
            open(FILE4, ">same1.txt");
              open (FILE5, ">new1.txt");
               
           @new=(and2, nor2,mux3,mux4,nand6);
           @old=(and2,mux7,fill_7,mux4);
          
          
           $count1=4;
           $count2=3;
             $a=0;
              $b=0;
             while($a <=$count1)
             {
              
                {
                  if($new[$a] == $old[$b])
                      {
                        
                        print FILE4 "$new[$a]\n";
                        
                        
                         
                    }
                    elsif($new[$a] !~ $old[$b])
                    {
                        print FILE5 "$new[$a]\n";
                      }
                    
                    
                    $a++;
                }$b++;
             
              }
                  

           
           close(FILE4);
           close(FILE5);


  • Next message: Andrew Gaffney: "weird math"

    Relevant Pages

    • Re: Excel Cell Formats
      ... Disable the update of excel. ... Copy the cells from this new sheet to my selection ... Someone suggested that I create a dummy 2D array containing my ... new ordering, but for my selection only, not the entire row. ...
      (microsoft.public.excel.programming)
    • Re: Array Declaration Problem ??
      ... cells B11:B14:: numerical values ... Function Zroots2 (ar As Range, ai As Range, m As Integer, polish As String) ... instead of returning the array 3 results to the 3 vertical cells. ...
      (microsoft.public.excel.programming)
    • Re: Nearest point to the mouse cursor?
      ... > It is very easy to get X and Y coordinates when the cells are rectangles: ... > that pattern is represented in the Rows array. ... >> I'm also drawing the hexcells in a panel, not a form and although I've ... > you draw your 50X50 board to the bitmap, and then copy it over to the panel ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Excel Macro Filtered Data in-place: cannot calculate Frequency of Visible Cells
      ... What you could do, perhaps, is to use the Advanced Filter, set a criteria ... I have implemented your suggestion for a separate> named range object SET to the original range that contains the whole> un-filtered list, ... But the data> returned is still based on the whole un-filtered list and not the> filtered, Visible Cells only. ... >>> Returns a frequency distribution as a vertical array. ...
      (microsoft.public.excel.programming)
    • Re: I dont understand the definition of DOES>
      ... on stack on code entry). ... You can use DOES to make ARRAY and then use ARRAY ... CREATE CELLS ALLOT ... First you'd make the code that will execute on the child word. ...
      (comp.lang.forth)