Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1126378]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-16 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found