Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: mark unreadable file so a loop does not read the file again

by nagalenoj (Friar)
on Dec 05, 2008 at 06:06 UTC ( #728196=note: print w/ replies, xml ) Need Help??


in reply to mark unreadable file so a loop does not read the file again

You have to be careful before changing the characteristics(binary, unreadable,..,) of a file. Because, it is going to affect you when you access the file for some other purpose.

It is better to log the read file names in a separate file(log) and check the existence of file name in the file(log) before reading the files.

  • Comment on Re: mark unreadable file so a loop does not read the file again

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2016-07-02 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (20 votes). Check out past polls.