http://www.perlmonks.org?node_id=198393


in reply to directory Content Drop-down

Could you give us a bit more details? Is this for GUI application with Perl/Tk or HTML/CGI?

I am not familiar with Perl/Tk, but in HTML you can use <SELECT> tag to do this kind of thing (there is also a CGI.pm function that builds this drop down list)

You can read the directory using functions opendir, readdir and closedir to get the file names