Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 file

by huck (Prior)
on Jul 06, 2018 at 04:32 UTC ( [id://1218022]=note: print w/replies, xml ) Need Help??


in reply to read files one by one in directory and redirct output to a file

"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

  • Comment on Re: read files one by one in directory and redirct output to a file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1218022]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-18 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found