Help for this page

Select Code to Download


  1. or download this
    my %log_file_hash = ();
    my @log_file_array;
    ...
    #now the whole file is in the hash and array.
    print "The first line is " . $log_file_hash{"0"} . "\n";
    print "From the array... " . $log_file_array[0] . "\n";
    
  2. or download this
    $line_0 = "";
    $line_1 = "";
    ...
      $line_0 = $line;
    }