in reply to read and link !
It'll need a little work to adapt it to your environment, but it does most of what you asked for. Come back with your code when you've made your adaptions if you have any problems
perl -MCGI=:standard -e"print header, html({-title=>'My Files'}, map{ +a({href=>$_},$_).br().$/} <$ARGV[0]>);" *
|
|---|