>Hi, >I want to open a temporary file somwhere and I am facing the problem of >making sure I dont write to an already existing temporary file, thus >curropting some other process somewhere else. Is there a way of telling >perl to open a new file for writing but to throw an error if the file >already exists?
>Thanks, >James. Why don't you use new_tmpfile class method of IO::File use IO::File; $fh = IO::File->new_tmpfile or die "Error:Unable to open File $!\n"; This creates a temporary file...you won't have to bother See Cookbook section 7.5 for more details!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]