Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by huck (Parson)
on Jul 06, 2018 at 04:32 UTC ( #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
Node Status?
node history
Node Type: note [id://1218022]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2019-10-17 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?