in reply to Delete reference tree from a file

I am looking to delete one reference Server01 content in the above.

There is no "Server01" in the above. Perhaps you have already successfully deleted it?

Replies are listed 'Best First'.
Re^2: Delete reference tree from a file
by aravind.kalla (Novice) on Mar 27, 2018 at 13:47 UTC

    My bad ...typo error its servername.com

      So, just delete that then.

      use strict; use warnings; use Test::More tests => 2; my $ref = { 'servername.com' => 'foo' }; ok (defined $ref->{'servername.com'}, 'Present'); delete $ref->{'servername.com'}; ok (!defined $ref->{'servername.com'}, 'Absent');

        Thanks for the input... but here the status file contains the reference, and this has to be deleted from the file.