To answer the first part of your question about removing spaces from the number and reading from four input files:
#!/usr/bin/perl
use strict;
use warnings;
@ARGV = qw(PT1.txt PT2.txt YK1.txt YK2.txt);
while (my $line = <>){
my @fields = split /\s+/, $line;
print @fields[6..8], "\t", $fields[9], ' | ', $ARGV, "\n";
}
d5e5
Practically a Posting Shark
831 posts since Sep 2009
Reputation Points: 162
Solved Threads: 163
Skill Endorsements: 1
Question Answered as of 1 Year Ago by
d5e5
and
2teez