I searched from internet, but I only found php solutions to this problem. Please help if you know how to do this in perl.
I am trying to generate a webpage showing the content of a directory on my server’s local disk. For example, a page containing the following will do the work
<file name="file1" href="file1" />
<dir name="dir1" href="dir1/" />
<dir name="dir2" href="dir2/" />
Thank you for your help.
Modifications have to be made to secure the script and also in jailing it. However, the idea can be implemented like: