Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    
  2. or download this
     $src_filename = $ARGV[0];
     $var_filename = $ARGV[1];
     $tgt_filename = $ARGV[2];
     $mac_filename = $ARGV[2];
    
  3. or download this
    die "Usage: four arguments\n" unless $#ARGV == 3;
    my ($src_filename,$var_filename,$tgt_filename,$mac_filename) = @ARGV;
    
  4. or download this
    while (defined my $line = <IFILE>) { 
     chomp; # remove \n from the end of the line
     ...
    }
    
  5. or download this
       #Read only 1 - 72 columns data
       $Line =~ /.{72}/;
       $Line = $&;
       $Line = $Line."\n";
    
  6. or download this
       $Temp = $Line;
    
       #Remove evrything after column 40 fromt he code
    ...
       $Line = $&; 
       chomp($description);
       $description =~s/\s+$//g;
    
  7. or download this
       $Line =~s/\(/\'/g;
       $Line =~s/\)/\'/g;
    
    ...
              }
          }
         }
    
  8. or download this
    if($line =~/([^\s]+)\s+(DC|DS|EQU)\s+(A|X|C|H|F|D|0X|0D|0C)+(L)*([^\'\
    +(\s]+)*(\'(.+)\')*\s*/i) {
     ($line,my $description) = ($line=~/^(.{40})(.*)\s+$/); # do the actua
    +l $line modification only there
    ...
      length $line > 0 && push @Tgt_File_Array,(join " ",(split ' ',$line)
    +[0,1]);
     }
    }