Help for this page

Select Code to Download


  1. or download this
    @lines = <LOGFILE>;
    
    ...
    ($dd, $mm, $yy, $hh, $mt, $tt, $tdd, $tmm, $tyy, $thh, $tmt, $ttt) = $
    +line =~ /(\d+)-(\d+)-(\d+)\s(\d+):(\d+)\s(am|pm)-(\d+)-(\d+)-(\d+)\s(
    +\d+):(\d+)\s(am|pm)/;
    
  2. or download this
    $line =~ /(\d\d)-(\d\d)\s+(\d\d):(\d\d)\s+([ap]m)-(\d\d)-(\d\d)-(\d\d)
    +\s+(\d\d):(\d\d)\s+[ap]m/
    
  3. or download this
    if ($tt == 'pm') {
    $hh = $hh + 12;
    ...
    if ($ttt == 'pm') {
    $thh = $thh + 12;
    }
    
  4. or download this
    if ($tt eq 'pm') {
    $hh += 12;
    ...
    if ($ttt eq 'pm') {
    $thh += 12;
    }