Document-Manager
view release on metacpan or search on metacpan
lib/Document/Repository.pm view on Meta::CPAN
By default, update() replaces the existing file. If $append is defined,
however, update() will append $content onto the end of the file (such as
for logs). Note that no separation characters are inserted, so make sure
to add newlines and record delimiters if you need them.
Returns a true value if the file was successfully updated, or undef on
any error. Retrieve the error via get_error();
=cut
sub update {
my $self = shift;
my $filename = shift || return undef;
my $doc_id = shift || return undef;
my $content = shift;
my $append = shift;
if (! defined $content) {
$self->_set_error("Undefined content not allowed\n");
return undef;
}
( run in 0.342 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )