loosid has asked for the wisdom of the Perl Monks concerning the following question:
use CGI qw(:standard); #use Win32::ODBC; use strict; use win32; my ($directory); my ($name); print "enter in directory \n"; chomp ($directory = <STDIN>); print "directory is $directory\n"; #Open the directory to list what's inside opendir(DIR, "c:/$directory") || die "Cannot open $directory $!"; foreach $name (sort readdir(DIR)) { #Prints names sorted print "$name\n"; } closedir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opendir under WinNT using CGI
by Yohimbe (Pilgrim) on Feb 01, 2001 at 03:17 UTC | |
|
Re: Opendir under WinNT using CGI
by the_slycer (Chaplain) on Feb 01, 2001 at 02:53 UTC |