The viewer enters a Perl script into your web page form, the server runs the script, and returns a list of directories.
There seem to be a few steps missing.
How do you know the viewers script generates a list of directories? it might delete every file it encounters, or count the number of jelly beans that fit between the earth and the moon, or, more likely, not do anything useful, or be incorrect.
If you want visitors to explore your directory hierarchy, how about displaying the top-level directories as checkbuttons, allowing the visitor to select on and drill down through your file system. But why would anyone want to explore your layout, other than a hacker looking for ways to break in.
Why not think about what you really want the viusitor to achieve, and ask questions about that?
--
TTTATCGGTCGTTATATAGATGTTTGCA
|