I am working on a database and i have to work on all .txt files present in different directories. Some file with same name are also present in different directories but i have to work on only those which are latest updated/created. I am using glob command but it is passing all files with .txt format into the array assigned to it. I just want to remove duplicate entries on basis of date of formation of file. Only latest file should present rest all files with same name should get eliminate.Only files with unique names should get stored in @filelist. Please help me out...
my @filelist = glob"/user/*/ws/*/BLK_*/*.txt for my $file (@filelist) { . . . . . }
In reply to GLOB function by rahu_6697
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |