Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: read files one by one in directory and redirct output to a fileby huck (Prior) |
on Jul 06, 2018 at 04:32 UTC ( [id://1218022]=note: print w/replies, xml ) | Need Help?? |
"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."
Ditto for opening for read/write
In Section
Seekers of Perl Wisdom
|
|