in reply to Please find out the mistake in substitution function in the code??
Your print OUT if (...) needs something to print.
You should work out how you would do this manually in order to form your algorithm. I would suggest building a hash where the values from file2 are the keys, and the corresponding strings from file3 are the values. Then, for each line in file1, loop over the hash keys and replace with hash value if key is found in line.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Please find out the mistake in substitution function in the code??
by AnomalousMonk (Archbishop) on May 11, 2015 at 17:40 UTC | |
by GotToBTru (Prior) on May 11, 2015 at 19:17 UTC | |
Re^2: Please find out the mistake in substitution function in the code??
by sumathigokul (Acolyte) on May 12, 2015 at 05:12 UTC | |
by GotToBTru (Prior) on May 12, 2015 at 13:47 UTC |
In Section
Seekers of Perl Wisdom