in reply to Re^3: socket checker in multiple hosts for multiple destination
in thread socket checker in multiple hosts for multiple destination

Thats the code I have presently. I did not understand your comment #@poj

  • Comment on Re^4: socket checker in multiple hosts for multiple destination

Replies are listed 'Best First'.
Re^5: socket checker in multiple hosts for multiple destination
by poj (Abbot) on Feb 15, 2016 at 10:55 UTC

    You have

    open( my $data_fh, ">", $file2 ) or die "Could not open [$file2] [$!]";

    which opens the $file2 for writing

    To read from it use

    open( my $data_fh, "<", $file2 ) or die "Could not open [$file2] [$!]";
    poj