Help for this page

Select Code to Download


  1. or download this
        if ($line =~ /DOWN/) {
            # ...
        } elsif ($line =~ /PROBLEM/) {
            # ...
        }
    
  2. or download this
    my $error = "DOWN";
    my $warn  = "PROBLEM";
    ...
        } elsif ($line =~ /$warn/) {
            # ...
        }
    
  3. or download this
        my $error = "Server ... DOWN";
        if ($line =~ /$error/) {
            # conditional clause
        }