#!/usr/bin/perl -w print "Content-type: text/html\n\n"; $dirname = "\\\\host01\\ISO"; opendir ( DIR, $dirname ) || print "error: $!"; while( ($filename = readdir(DIR))){ print("$filename"); } closedir(DIR);