- or download this
for my $arg (@ARGV) {
#$script=$ARGV[0];
...
$metricsfile=$ARGV[0];
$resultfile=$ARGV[1];
}
- or download this
use strict; # always!
use warnings; # always!
- or download this
### Assigning the argument file to in_file ####
$in_file = $metricsfile;
- or download this
open (IN, "<$in_file") or die "Can't open $in_file: $!";
- or download this
### A while condition to read all the lines in a file and place in an
+array####
#my $linenum=1;
while(@linesFromMetrics=<IN>){ # opening while loop
- or download this
my @lines=<IN>;
# or
while (my $line=<IN>) { # ...
- or download this
#print "Reading metrics file \n";
#print $linenum++;
- or download this
### Assigning the argument file to in_file ####
$input_file = $resultfile;
- or download this
#!/usr/bin/perl
...
$orig{$_} and print while <$fh>;
__END__