![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: readdirby Speedy (Monk) |
on Oct 29, 2002 at 19:49 UTC ( [id://208852]=note: print w/replies, xml ) | Need Help?? |
Perldoc is your friend here. From your $dir path, looks like you are on windows. So go to a DOS prompt, enter: perldoc -f readdir and you will see by happy coincidence as the example in the last paragraph an answer to your question: -------------------------If you're planning to filetest the return values out of a "readdir", you'd better prepend the directory in question. Otherwise, because we didn't "chdir" there, it would have been testing the wrong file.
------------ Just replace the ^\. with ^xxxx and your job is done, like:
Live in the moment
In Section
Seekers of Perl Wisdom
|
|