Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
    
    
    while (<IN>) {
    
  2. or download this
     # Ok now $_ has scalar input from <IN>
    
  3. or download this
     chomp();
    
  4. or download this
     # and it's newline chomped
    
     # here is where it is confusing, there is nothing in @field,
     # let alone at $field[0] , do you mean to split up $_ into @field ???
    
  5. or download this
     if ($newline{$field[0]})  {
           processbuffer();
      }
    
  6. or download this
     # OK , I am certain this is not doing what you expect
     #if ( index($newline{$_}, $skipaccount{$_}) != -1) {
    ...
     # is a member of the skipaccount hash.
     # the if (index($newline{$_} ) makes no sense to me, not in the least
    + with
     # the data that appears to be in those objects.
    
  7. or download this
      $buffer .= "$_\n";      
    }
    ...
      $buffer="";
      $suppress = 0;
    }