I'm doing a simple experiment: I'm locking a file with the result that my other script will not be able to write or read to/from this file.
Locking the file: flock(IN,LOCK_EX) ;
opening the file: open OUT,">my_locked_file.txt" or die "Cannot open file\n"; So what happened, my script didn't have any problems with opening this file Any suggestions how I should open files obaying the lock-rules ?