Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-09-22 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (257 votes). Check out past polls.

    Notices?