Chaim Frenkel writes: |If there is a race condition possible, split them up. I'm partial to |mkdir "tempdir.$$". sticking hostname in there, if multiple hosts are |sharing this. |The pid can't be reused as long as the process is still around, so |the kernel will take care of the locking. Hope your scripts are never run under modperl or the like, or you never want to create more than one temp file in a script. And that *every other script* that could be running on the same machine is well-behaved. Brian ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe