IO::Journal::Transaction - Perl interface to IO::Journal transactions
Version 0.2 ($Id: Transaction.pm 8239 2009-07-26 03:28:55Z FREQUENCY@cpan.org $)
This module provides the facilities for handling
Operations can be added to the transaction object via the exposed interface; they can then be either saved to file (commit) or simply discarded (rollback).
my $trans = $journal->begin_transaction(); $trans->write("Hello "); $trans->write("World\n"); $trans->commit(); # may die # File either contains "Hello World\n" or nothing # Transactions can be rolled back even after committing! (But only if we # have a current handle to the transaction) $trans->rollback();
Jonathan Yu <email@example.com>
Please file bugs for this module under the
IO::Journal distribution. For more information, see IO::Journal's perldoc.
This has the same copyright and licensing terms as IO::Journal.
The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.