CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Thalakos] Merges 2 text files under few conditions : Edit Log



FishMonger
Veteran / Moderator

Apr 4, 2013, 2:39 PM


Views: 939
Re: [Thalakos] Merges 2 text files under few conditions

Are you saying you want each line in file_b.txt repeated by the number of times the column 1 is found in file_a.txt?

Load file_a.txt in a hash which keeps a running total of each value and use that value as a multiplier when outputting each row in file_b.txt


(This post was edited by FishMonger on Apr 4, 2013, 2:39 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Apr 4, 2013, 2:39 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives