I'm writing a basic To-Do List script in Perl (my life needs organising rather badly
), and I've made some progress. However, I'm just stuck at one specific point.
Could someone explain to me how to loop through all files in one directory and print all their contents into separate lists, please? This is what I'm aiming to do:
I want to create collapsible lists on a HTML page based on the contents of files in a "Data" directory. For example, if I had Coursework.txt, Homework.txt and Other.txt in the "Data" directory, this is what I'd like to be output:
[code][/code]The "Delete" button would obviously be there so I could delete the item when I've done it
I already have the JavaScript to collapse the separate categories, that's not a problem.
I wouldn't usually ask, but there are no pre-written to-do scripts anywhere, the Perl tutorials I can find are terrible, and I'm really desperate for help.
Is anyone willing to help me with this one, please?