Yes! I can see all Files and Dirs without . and .. Can this be a hint why readdir dosn't work? Thanx! Cornelius ---------------------------------------------- the (right) result: ---------------------------------------------- Test ---------x <BR> 1 file:"/usr/local/apache/bin" length of filename:21<BR> 2 file:"/usr/local/apache/cgi-bin" length of filename:25<BR> 3 file:"/usr/local/apache/conf" length of filename:22<BR> 4 file:"/usr/local/apache/htdocs" length of filename:24<BR> 5 file:"/usr/local/apache/htdocs_mason_data_cache" length of filename:41<BR> 6 file:"/usr/local/apache/htdocs_mason_data_cache2" length of filename:42<BR> 7 file:"/usr/local/apache/icons" length of filename:23<BR> 8 file:"/usr/local/apache/include" length of filename:25<BR> 9 file:"/usr/local/apache/libexec" length of filename:25<BR> 10 file:"/usr/local/apache/logs" length of filename:22<BR> 11 file:"/usr/local/apache/man" length of filename:21<BR> 12 file:"/usr/local/apache/perlmod" length of filename:25<BR> 13 file:"/usr/local/apache/proxy" length of filename:23<BR> <<<< <BR> >Does glob() work? >my @files = glob( "$directory/*" );