in reply to Re: Use of uninitialized value $brip in join or string at script.pl line 50
in thread Use of uninitialized value $brip in join or string at script.pl line 50

Thanks very much for looking into this. Yes I understand it has multiple issues and I am still trying to evolve on scripting so I sure WILL take your advice in upcoming posts

I have updated my question a trimmed version of xml although it contains all the necessary input required for the script.

if BRLAN = y then first the script should search for CoreLanNum $n. and the loop should run as many times as $n and should match BR_IP with CorLanNum_IP and store the value in a array.

If this array is empty run next for loop and search of CoreVlanNum $n and the script should again search for CoreVlanIP with BR_IP and map it with equivalent netmask.

  • Comment on Re^2: Use of uninitialized value $brip in join or string at script.pl line 50

Replies are listed 'Best First'.
Re^3: Use of uninitialized value $brip in join or string at script.pl line 50
by poj (Abbot) on Sep 15, 2015 at 17:57 UTC

    For the first server mch30-nds-ins there in no BR_IP attribute to match against.

    poj
      Thanks for looking into this, YES since that is the primary condition is br_ip is YES then move ahead or else use @networklist which I have created at the start of my foreach loop