|Perl: the Markov chain saw|
Does problem is in the for loop???by sumathigokul (Acolyte)
|on May 11, 2015 at 06:18 UTC||Need Help??|
sumathigokul has asked for the wisdom of the Perl Monks concerning the following question:
Good day to all...
I have four input files as follows.
My perl script has to read XOR_portmap file and write to XOR_portmap_nets with substitution in for loop. i.e it should substitute m in XOR_portmap file by 1st, 2nd, 3rd element of uut_names and in1 by 1st, 2nd, 3rd element of nets_names and output by 1st, 2nd, 3rd element of enabled_nets...
Here is the code i wrote and the output file it generates....i attached my expected output file also... Correct the mistake in the code monks... Thank you all...
XOR_portmap_nets file generated for this code is as follows..
One more question is, why is it doing each substitution at newline only, instead of writing it as M1: XOR2 port map (A=> a_c, B=> enable_c, Y => a_e); (in single line)
But, i want XOR_portmap_nets file (my expected output file) as follows..