outputs folder contents minus one file. Additionally, it also outputs "." and ".." in the array. Every other linux system i've been on usally just outputs the ".." Does anyone know why i am missing a file? SysAdmin tells me i cannot use readdir but i consider it a core function in my code i am really wondering why this is now a problem. Can anyone confirm this error? Anyone have any advice? Thanks for attention,opendir Tdir, "/path/to/anywhere"; my $dir = readdir(Tdir); while($dir = readdir(Tdir)){ print "$dir\n"; }close Tdir;
In reply to readdir missing one file by true
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |