Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $offset = (split(/\s+/, (grep(/^\*/, `$cmd`))[0]))[8];
    
    print "$offset\n";
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $offset = (split(/\s+/, $current_time_source))[8];
    
    print "$offset\n";
    
  3. or download this
    use strict;
    use warnings;
    ...
    die "$current_time_source: No offset" unless(defined($offset));
    
    print "$offset\n";