Re: [PBML] read file if there else create file question
>>>>> "Luinrandir" == Luinrandir Hernsen <Luinrandir@...> writes:Luinrandir> open (WRITE, ">$_")||DieNice3("Can't write to $_");
Luinrandir> flock (WRITE,2);
I didn't read the rest of your post, but this is "closing
the barn door after the horse has already left", as an english idiom. :)
In other words, your flocking is too little, too late.
You really need to read up on how to use flock properly if you're
going to use it. Or, use one of the existing modules.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!