nasa has asked for the wisdom of the Perl Monks concerning the following question:
This prints the list of files in the browser asprint "Content-type: text/html\n\n"; opendir(HOMEDIR, "\start") || die ("Unable to open directory"); while ($filename = readdir(HOMEDIR)) { print ("$filename\n"); } closedir(HOMEDIR);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: directory printing
by ikegami (Patriarch) on Dec 10, 2006 at 05:42 UTC | |
Re: directory printing
by spunk (Acolyte) on Dec 10, 2006 at 06:22 UTC | |
Re: directory printing
by McDarren (Abbot) on Dec 10, 2006 at 05:31 UTC | |
by bart (Canon) on Dec 10, 2006 at 09:39 UTC | |
by McDarren (Abbot) on Dec 10, 2006 at 10:15 UTC | |
by converter (Priest) on Dec 10, 2006 at 16:15 UTC | |
Re: directory printing
by MaxKlokan (Monk) on Dec 10, 2006 at 17:07 UTC |