Help for this page

Select Code to Download


  1. or download this
    $out_file = "out1";
    open (OUT, "$out_file");
      while (<OUT>) {
    ...
      }
    close (OUT);
    print "hours =: $hours";
    
  2. or download this
    while (<DATA>) {
      if ($_ && /Time:\s+(\d+):(\d+):(\d+)/i) {
    ...
    
    __DATA__
    Time: 04:45:12