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


in reply to Re^2: How to view all files in the directory using CGI
in thread How to view all files in the directory using CGI

If your only problem is reading the right directory,then all you need to do is change the line that sets $filedir to:
my $fileDir ='c:/file/out';
You'll also need to figure out what relation there is between that directory and a reachable URL path.