Buffer-Transactional
view release on metacpan or search on metacpan
lib/Buffer/Transactional.pm view on Meta::CPAN
=pod
=head1 NAME
Buffer::Transactional - A transactional buffer for writing data
=head1 SYNOPSIS
use IO::File;
use Try::Tiny;
use Buffer::Transactional;
my $b = Buffer::Transactional->new( out => IO::File->new('my_novel.txt', 'w') );
try {
$b->begin_work;
$b->print('It was the best of times, it was the worst of times ...');
# ...
die "Whoops!";
# ...
$b->commit;
( run in 0.962 second using v1.01-cache-2.11-cpan-05444aca049 )