#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); $dirtoget="chat"; opendir(IMD, $dirtoget) || die("Cannot open directory"); @thefiles= readdir(IMD); closedir(IMD); print "Content-type: text/html\n\n"; print "<html><body>"; foreach $f (@thefiles) { unless ( ($f eq ".") || ($f eq "..") ) { print "$f<br />"; } } print "</body></html>";
In reply to Links to web page? by oh5yw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |