Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    
    printf( "Total time is %d minutes and %d seconds\n",
            int( $totalsec / 60 ), $totalsec % 60 );
    
  2. or download this
    for ( @lines0 ) {
       my ( $hrs,$mins,$sec ) = split( /:/, pop( split /\s+/ ));
       $totalsec += ...
    }