Help for this page

Select Code to Download


  1. or download this
    for my $arg (@ARGV) {
        #$script=$ARGV[0];
    ...
        $metricsfile=$ARGV[0];
        $resultfile=$ARGV[1];
        }
    
  2. or download this
    use strict;   # always!
    use warnings; # always!
    
  3. or download this
    ### Assigning the argument file to in_file ####
    $in_file = $metricsfile;
    
  4. or download this
    open (IN, "<$in_file") or die "Can't open $in_file: $!";
    
  5. 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
    
  6. or download this
    my @lines=<IN>;
    # or
    while (my $line=<IN>) { # ...
    
  7. or download this
     #print "Reading metrics file \n";
     #print $linenum++;
    
  8. or download this
     ### Assigning the argument file to in_file ####
     $input_file = $resultfile;
    
  9. or download this
    #!/usr/bin/perl
    
    ...
    $orig{$_} and print while <$fh>;
     
    __END__