"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."
http://perldoc.perl.org/functions/readdir.html
Ditto for opening for read/write
In reply to Re: read files one by one in directory and redirct output to a file
by huck
in thread read files one by one in directory and redirct output to a file
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |