oh5yw has asked for the wisdom of the Perl Monks concerning the following question:
#!/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>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Links to web page?
by almut (Canon) on Dec 03, 2008 at 16:11 UTC | |
by oh5yw (Novice) on Dec 03, 2008 at 16:33 UTC | |
by almut (Canon) on Dec 03, 2008 at 16:55 UTC | |
by oh5yw (Novice) on Dec 03, 2008 at 17:06 UTC | |
by almut (Canon) on Dec 03, 2008 at 17:14 UTC | |
|
Re: Links to web page?
by moritz (Cardinal) on Dec 03, 2008 at 17:08 UTC | |
by oh5yw (Novice) on Dec 03, 2008 at 17:17 UTC | |
by jeffa (Bishop) on Dec 03, 2008 at 17:25 UTC | |
by oh5yw (Novice) on Dec 03, 2008 at 17:42 UTC | |
by jeffa (Bishop) on Dec 03, 2008 at 17:44 UTC | |
|