Help for this page

Select Code to Download


  1. or download this
    
    use Getopt::Long;
    ...
    # if ( $opt->{help} ) { ... }
    # foo( $opt->{host} );
    
  2. or download this
    sub debug {
        my $msg = shift;
    ...
        # ...
        return $stamp;
    }
    
  3. or download this
    # ...
    my @k = ( 'Status', 'Time Stamp', 'Value', 'Error Message' );
    ...
    $one_line_summary = $h->{shift(@k)} . 'No Error. ';
    $one_line_summary .= $h->{$_} . '. ' for @k;
    $one_line_summary .= "$j.";
    
  4. or download this
    my @k = qw/ status time_stamp value error_message /;