anandkdas28 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am totally new to perl programming. Please help me to form a logic for this. I have many files may be 1.txt, 2.txt, 3.txt...... in one directory. Each file contains several data in this format. The ID column will be unique along a file. ID | Name | Place "\n" 1 name1 Chennai 2 name2 Mumbai There can be change the ID -1 can repeat in different file. So I need to search each ID in all the files in the directory and write the attributes for each ID to another file. The resultant file should have unique ID's and the attributes should be from the file with latest creation date. So BASICALLY resulting file will be a master list of ID's and the attributes. please help in this regard. I am only able to read the file and select it and put it in a different file. Could anyone please help me to move forward on this. . Thank you so much in Advance
  • Comment on How can i Search multiple files one pattern and return the matched values from the latest file?

Replies are listed 'Best First'.
Re: How can i Search multiple files one pattern and return the matched values from the latest file?
by moritz (Cardinal) on Apr 06, 2011 at 12:26 UTC
Re: How can i Search multiple files one pattern and return the matched values from the latest file?
by umasuresh (Hermit) on Apr 06, 2011 at 12:38 UTC
    Welcome to the monastery! Here are some tutorials to get you going.