Hi
I am a PERL novice. Currently dealing with a problem and wondering whether it can be solved using PERL?
I got a folder containing a number of text files. Every time a file is created a timestamp is added at the end followed by an "_". for example "apple_20101210091255.txt".
Where:
========
apple = item name
20101210091255 = timestamp, format: yyyymmddhhhhmmss
txt = filetype
Now the folder contains the following files:
apple_20101221134352.txt
apple_20101221131735.txt
apple_20110401091633.txt
orange_20111221131731.txt
orange_20111237131755.txt
banana_20111221131709.txt
coconut_20110401110735.txt
The script to create an array which holds the latest file on each item (apple, orange, banana, coconut) based on timestamp.
Is this possible?
I believe there are PERL gurus out there who could solve the problem with little effort.
Please share your knowledge....
Boshu