NAME

Ubic::AtomicFile - atomic file operations

VERSION

version 1.33

SYNOPSIS

use Ubic::AtomicFile;

Ubic::AtomicFile::store("blah\n" => "/var/lib/blah");

FUNCTIONS

store($data, $file)

Store $data into $file atomically. Temporary $file.new will be created and then renamed to $file.

AUTHOR

Vyacheslav Matyukhin <mmcleric@yandex-team.ru>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Yandex LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.