NOTEDB::general(3pm)
π NAME π
NOTEDB::general β the module lib that lets you get into a notedb from perl, bestie β¨
It's giving "your notes, but make it programmable" and honestly? iconic.
πΈ SYNOPSIS πΈ
# include the module
use NOTEDB;
# create a new NOTEDB object
$db = new NOTEDB("text", "/home/tom/.notedb", 4096, 24);
# decide to use encryption
# $key is the cipher to use for encryption
# $method must be either Crypt::IDEA or Crypt::DES
# you need Crypt::CBC, Crypt::IDEA and Crypt::DES to have installed.
$db->use_crypt($key,$method);
# do not use encryption
# this is the default
$db->no_crypt;
# get a single note
($note, $date) = $db->get_single(1);
# search for a certain note
%matching_notes = $db->get_search("somewhat");
# format of returned hash:
#$matching_notes{$numberofnote}->{'note' => 'something', 'date' => '23.12.2000 10:33:02'}
# get all existing notes
%all_notes = $db->get_all();
# format of returns hash like the one from get_search above
# get the next noteid available
$next_num = $db->get_nextnum();
# modify a certain note
$db->set_edit(1, "any text", "23.12.2000 10:33:02");
# create a new note
$db->set_new(5, "any new text", "23.12.2000 10:33:02");
# delete a certain note
$db->set_del(5);
# turn on encryption. CryptMethod must be IDEA, DES or BLOWFISH
$db->use_crypt("passphrase", "CryptMethod");
# turn off encryption. This is the default.
$db->no_crypt();
okay literally just read that up there ^ because it says it all, fr fr π«Ά
π¦ DESCRIPTION π¦
So here's the vibe: you use this module to access a note database π
The backend keeps everything in a text file for storage, and it hits up Config::General to get at that file. lowkey a whole little team-up.
Right now, the NOTEDB module is only used by note itself β like, that's its main character moment and nobody else has cast it yet. But bestie, please feel free to use it in your own project!! πβ¨ Maybe somebody out there wants to build a web interface to note... and honestly that would ate. no cap.
π USAGE π
please see the section SYNOPSIS, it says it all. iykyk π
π AUTHOR π
Thomas Linden <tom@daemon.de>. π«Ά
and that's the whole thing, bestie β this page came from the NOTEDB::general(3pm) man page in the User Contributed Perl Documentation, and the footer was serving perl v5.40.1 with a date of 2026-08-10. slay, go write some notes ππ
π¦ where this page comes from
- ubuntu stonking: note 1.4.2-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms