I know perl has extremely good string manipulation capabilities and a lot can be done through it. I have a file which gets generated by one process and there is a requirement to fetch specific content from the file and either store the output is a separate file or make the modifications to the same file. The contents of the file are below. I just need to fetch the folder names from it. The folder names will change whenever the process runs but everything above and below it will remain same except the date etc:

Thanks for the reply. I am not looking someone to do the work for me. I am very new to perl. I just need a direction on what functions to look for. I can then do some search and come up with a code. If that code does not work for me i would be seeking little help in improving it, not asking anyone to do the actual work for me.

did some research and came up with the below code. I know it's not pretty but is doing the job for me and i have the folder names in a separate file. The only problem is i have too many empty/blank line on the top and bottom. Next step is to try and trim that. Tried chomp but then it trims the new line char as well which i don' want.