App-SimplenoteSync

 view release on metacpan or  search on metacpan

lib/App/SimplenoteSync/Note.pm  view on Meta::CPAN


    $self->content($content);
    return 1;
}

method save_content {
    try {
        my $fh = $self->file->open('w');

        # data from simplenote should always be utf8
        $fh->binmode(':utf8');
        $fh->print($self->content);
    }
    catch {
        $self->logger->error("Failed to write content to file: $_");
        return;
    };

    return 1;
}



( run in 0.882 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )