- or download this
use warnings;
use strict;
- or download this
$src_filename = $ARGV[0];
$var_filename = $ARGV[1];
$tgt_filename = $ARGV[2];
$mac_filename = $ARGV[2];
- or download this
die "Usage: four arguments\n" unless $#ARGV == 3;
my ($src_filename,$var_filename,$tgt_filename,$mac_filename) = @ARGV;
- or download this
while (defined my $line = <IFILE>) {
chomp; # remove \n from the end of the line
...
}
- or download this
#Read only 1 - 72 columns data
$Line =~ /.{72}/;
$Line = $&;
$Line = $Line."\n";
- or download this
$Temp = $Line;
#Remove evrything after column 40 fromt he code
...
$Line = $&;
chomp($description);
$description =~s/\s+$//g;
- or download this
$Line =~s/\(/\'/g;
$Line =~s/\)/\'/g;
...
}
}
}
- 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]);
}
}