Just look at the code after the second paragraph of readdir, where the intended location of "prepend" is shown. The location is not in the readdir() call, but in the later usage, because readdir() only returns the bare name, not the full path to the directory entry.
@dots = grep { /^\./ && -f "$some_dir/$_" } readdir($dh);
In reply to Re^3: Permission & size are not visible
by Corion
in thread Permission & size are not visible
by gaurav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |