I want to delete the the line with HPOM, and keep only the line node:

my code:

```
#!/usr/bin/perl
use strict;

open (FILE, "/tmp/agentstas.dat");

my @lines = <FILE>;

my $lines;

my $string = "Node";

my $badstring = "hpom";

foreach $lines (@lines) {

    if ($lines =~ $string || $lines !=~ $badstring)  { print "$lines"; }

}

```

the results:

```
Node atum1:
HPOM Managed Node status :
Node vmatum3:
HPOM Managed Node status :
Node ls_sfda-new:
HPOM Managed Node status :
Node risto4:
HPOM Managed Node status :
Node jzn18z1:
HPOM Managed Node status :
Node sqlcatom:
HPOM Managed Node status :
Node new-sspc-as:
HPOM Managed Node status :
Node dafna:
HPOM Managed Node status :
Node adonis:
HPOM Managed Node status :
Node hydra:
HPOM Managed Node status :
Node kukuad:
HPOM Managed Node status :
Node janus1:
HPOM Managed Node status :
Node janus2:
HPOM Managed Node status :
Node zubin.extranet.gov.il:
HPOM Managed Node status :
Node nyx-as:
HPOM Managed Node status :
Node keto1:
HPOM Managed Node status :
Node sql12ao1:
HPOM Managed Node status :
Node keto2:
HPOM Managed Node status :
Node durge:
HPOM Managed Node status :
Node vcmanage:
HPOM Managed Node status :
Node vcmobile:
Node vishnu:
HPOM Managed Node status :
Node ram:
HPOM Managed Node status :
Node brizo.iaadom:
HPOM Managed Node status :
Node krishna:
HPOM Managed Node status :
Node mars1:
HPOM Managed Node status :
Node mars2:
HPOM Managed Node status :
Node rasas:
HPOM Managed Node status :
Node hypons.iaadom:
HPOM Managed Node status :
Node nnm-as.iaadom:
HPOM Managed Node status :
Node risto3:
HPOM Managed Node status :
Node ivrmanage.iaadom:
HPOM Managed Node status :
Node mpsair01:
HPOM Managed Node status :
Node mpsland01:
HPOM Managed Node status :
Node atum2.iaadom:
HPOM Managed Node status :
Node vmatum4.iaadom:
HPOM Managed Node status :
Node rastas:
HPOM Managed Node status :
Node nnm-ls.iaadom:
HPOM Managed Node status :
Node rasls:
HPOM Managed Node status :
Node ask1:
HPOM Managed Node status :
Node ask2:
HPOM Managed Node status :
Node grid2:
HPOM Managed Node status :
Node grid1:
HPOM Managed Node status :
Node ivrdb:
HPOM Managed Node status :
Node dafn:
HPOM Managed Node status :
Node mist1:
HPOM Managed Node status :
Node mist2:
HPOM Managed Node status :
Node amun:
HPOM Managed Node status :
Node amun1:
HPOM Managed Node status :
Node dagon:
HPOM Managed Node status :
Node dagon1:
Node davlin2:
HPOM Managed Node status :
Node cet:
HPOM Managed Node status :
Node sdns:
HPOM Managed Node status :
Node pdns:
HPOM Managed Node status :
Node hermes1.iaadom:
HPOM Managed Node status :
Node tyr2:
HPOM Managed Node status :
Node tyr1:
HPOM Managed Node status :
Node new_sspcls:
Node hapy1:
Node geb:
Node saga:
Node indra:
Node yama:

```