Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by sumathigokul (Acolyte)
on May 12, 2015 at 05:12 UTC ( #1126378=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1126378]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-11-26 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?