http://qs321.pair.com?node_id=1126378


in reply to Re: Please find out the mistake in substitution function in the code??
in thread Please find out the mistake in substitution function in the code??

Hi GotToBTru...

Since i want to automate this process and nets.txt and enabled_nets.txt files are all generated automatically, every time I will not know the contents of those files, in such case,. how can i make it as hash.... Do you find any mistake in this code??

  • Comment on Re^2: Please find out the mistake in substitution function in the code??

Replies are listed 'Best First'.
Re^3: Please find out the mistake in substitution function in the code??
by GotToBTru (Prior) on May 12, 2015 at 13:47 UTC

    Using the arrays you have already loaded:

    %hash = map { $nets[$_] => $enabled_nets[$_] } 0..$#nets;
    Dum Spiro Spero