Hello, everyone!
I got a very strange question...
in the *.ipl, I use "-d" the perl built-in operator to test if the current parameter is directory.
When i run this program in command line, it really works.
but when i run it in Internet Explore, it fails.
see the example code as below..
$dir = "/usr/iw-home";
print "Text files in $dir are:\n";
opendir(BIN, $dir) or die "Can't open $dir: $!";
while( defined ($file = readdir BIN) ) {
print "$file\n" if -d "$dir";
}
closedir(BIN);
Could anyone tell me why??
thanks a lot!

Edited by claire_wen on 04/01/04 08:08 PM (server time).