If I understand you situation correctly you can take care of this with flock.
open(HANDLE, ">file.dat"); flock(HANDLE, 2); #lock file # file processing flock(HANDLE, 8); #unlock file close(HANDLE);
This will lock you file so no one else can write to it while the program is. Any other program will have to wait to write to it.
Hope that helps.
my $name = 'Ben Kittrell'; $name=~s/^(.+)\s(.).+$/\L$1$2/g; my $nick = 'tha' . $name . 'sta';In reply to Re: File Use
by thabenksta
in thread File Use
by qball
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |