Help for this page

Select Code to Download


  1. or download this
       if (int($colLens[$x]) < length($rec1)) {
          printf "colLens:%s, rec1:%s\n", $colLens[$x], $rec1;
          $colLens[$x] = length($rec1);
          ...
    
  2. or download this
       for (my $y = 0; $y <= $#header; $y++) {
          $colLens[$y] = length($header[$y]);
       }
    
  3. or download this
       @colLens = map length, @header;