Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ######################################################################
    +########
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    
    ######################################################################
    +########
    
  3. or download this
    open FH, "<:encoding(UTF-16)", "$file_folder\\$ori_datafile" or die
    + "can't open file";
    
    ...
    open (FIXLOG, ">$log_folder\\$fix_log") or die "can't open file";
    open (ERRLOG, ">$log_folder\\$error_log") or die "can't open file";
    open (FIXRPT, ">$log_folder\\$rptfile") or die "can't open file";
    
  4. or download this
       chop;  # aviod \n in last field;
    
  5. or download this
       $ori_line_number=$ori_line_number+1;
    
  6. or download this
       $ori_line_number += 1;
    
  7. or download this
       $ori_line_number++;
    
  8. or download this
       $pipe_thisline=($_ =~ tr/\|/\|/);
    
  9. or download this
       $pipe_thisline = tr/|//;
    
  10. or download this
      if ($pipe_thisline eq $right_pipes) {
    
    ...
    
            if ( $pipe_thisline > $right_pipes ) {
    
  11. or download this
      if ($ori_line_number eq 1) { print FIXRPT "Report on Fixing Line Bre
    +aks in CT_Vendor_Summary File\n\n";
    ...
    ...
    ...
    
                elsif ($pipe_sum eq $right_pipes ) {